android: Start wallet no longer looks like a no-op while Cuprate launches
All checks were successful
ci / test (pull_request) Successful in 5m34s
ci / sdk (pull_request) Successful in 1m22s
android-ci / android (pull_request) Successful in 10m48s
ci / fuzz (pull_request) Successful in 4m52s

Tapping Start held the SQLCipher mutex for the whole in-process Node::launch
and blocked the UniFFI tokio worker, so wallet_status stayed off with no
error. Drop the store lock until creds are needed, spawn_blocking the sync
start, and show that Start is in flight.

The APK still runs Cuprate testnet only; this does not add mainnet or prune.
This commit is contained in:
agent 2026-09-19 12:03:01 -04:00
commit 0acf89a0b4
No known key found for this signature in database
7 changed files with 103 additions and 34 deletions

View file

@ -617,10 +617,12 @@ impl Node {
cfg.build(self.home.join("wallet"))
.map_err(|e| e.to_string())?,
);
let client = {
let store = self.store.lock().map_err(|e| e.to_string())?;
child.start(&store).map_err(|e| e.to_string())?
};
// Do not hold SQLCipher across Cuprate/`monerod` launch: `wallet_status`
// also locks the store, and a blocked poller is how Android Start looks
// like it did nothing.
let client = child
.start_unlocking_store(&self.store)
.map_err(|e| e.to_string())?;
let Some(client) = client else {
return Err("chain source is receive-only — nothing to start".into());
};