android: Start wallet no longer looks like a no-op while Cuprate launches #124
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/android-cuprate-start-feedback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tapping Start wallet on the Cuprate chain source looked like a dead button: status stayed
off, no error.Root cause:
Node::start_wallet_childheld the SQLCipher mutex across CuprateNode::launch, so the 2swallet_statuspoller blocked, and the UniFFI asyncstart_wallet_childran that blocking launch on the tokio worker.This PR:
spawn_blockingthe sync start so UniFFI tokio is not stalledStart is running…immediately and disables the button while it is in flightDoes not add mainnet or prune. Cuprate in this APK is still testnet-only.
Verified:
cargo test --lib wallet_child::(22),start_wallet_child_honours_the_configured_binary, root+SDK clippy-D warnings, SDK tests (33). Android unit test needs CI (no local ANDROID_HOME).