sdk: land the on-device Cuprate chain source on main (replay of #111's SDK commit) #112
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_52f8de0f-cuprate-land-the-sdk-surface-on-main-pr"
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?
What this is
The SDK half of the in-process Cuprate chain source, replayed onto
main.PR #111 was merged with
base=onionwire/t_04975420-cuprate-land-the-in-process-chain-source(the core card's branch), somainonly ever got the core half via PR #110. This PR carries the SDK commit (64a1f29) on top ofmain(25e029e) with no core commits replayed — the tree change is byte-identical to that commit's own diff:Files (scope-confined: no
src/**, no root manifest, noandroid/**, no workflows):What lands for Kotlin:
ChainChoice.InProcessCuprate, the SDK's owncuprate-daemonfeature (pass-through to the core's), an emptymonerod_datadirresolved to$ONIONWIRE_HOME/chain, andwallet_statusgainingchain_in_process/node_available/node_statebeside the core's five state words.start_wallet_child()is the whole lifecycle for the in-process source (the core starts the node and the wallet child in that one call). No second state machine, no timer, no env var.Why it blocks the release
Enabling cuprated from the Android Gradle build is
cargo ... --features cuprate-daemonin the SDK crate. A feature key that does not exist in the SDK manifest cannot be enabled, somaintoday ships an APK with no cuprate in it.Evidence (all commands run in a worktree at this commit)
cargo test --locked-> exit 0, 33 + 1 + 1 tests passed (feature off).cargo clippy --locked --all-targets -- -D warnings->Finished dev profile, exit 0.cargo test --locked --features cuprate-daemon-> exit 0, same test set green with the daemon compiled in.cargo tree --locked --features cuprate-daemon -e normal -i cupratedresolvescuprated v0.1.0-preview (rev 4f8fcd1bf468f566fcd89c460d50de4adb6825bf)underonionwire-sdk.cargo clippy --locked --features cuprate-daemon --all-targets -- -D warnings-> exit 0.The load-bearing one, with the NDK 28.2.13676358 env and
-P 26:cargo check --release --target aarch64-linux-android --features cuprate-daemon->Finished release profile, exit 0. Fresh artifacts in a new target dir: 631 metadata files,libcuprated-*.rmetaforaarch64-linux-android, and RandomX cross-built (.../build/randomx-rs-*/out/lib/librandomx.a).grep -c 'name = "cuprated"' crates/onionwire-sdk/Cargo.lock-> 1 (was 0 onmain).grep -n 'cuprate-daemon' crates/onionwire-sdk/Cargo.toml-> line 28,cuprate-daemon = ["onionwire/cuprate-daemon"]under[features].Root crate unaffected:
cargo test --locked --target x86_64-unknown-linux-gnu-> exit 0.Notes
crates/onionwire-sdk/src/lib.rsis 2 rustfmt hunks off, andmain's version of the same file is the same 2 hunks off — inherited churn, not introduced here, and deliberately not reformatted (repo-wide rustfmt churn is out of scope).docs/WALLET.mdchanges are the SDK-facing paragraph plus the chain-source label list; no other doc touched.