sdk: expose the on-device Cuprate chain source (choice, lifecycle, node status)
ChainChoice gains InProcessCuprate, the SDK passes the core's cuprate-daemon
feature through as its own, and an empty monerod_datadir for that kind resolves
to $ONIONWIRE_HOME/chain so Kotlin never invents a path. wallet_status now
carries chain_in_process / node_available / node_state beside the core's five
state words; no second state machine, no timer, no env var.
start/stop stay the core's pass-through: one call launches the node and the
wallet child, one stops both, both idempotent.
Replayed onto main (25e029e): PR #111 was merged into the core branch
onionwire/t_04975420-cuprate-land-the-in-process-chain-source, not main, so
main had only the core half (from PR #110). This is the same tree change with
no core commits replayed.
This commit is contained in:
parent
25e029ed4e
commit
e89dd9eaee
4 changed files with 1758 additions and 32 deletions
|
|
@ -17,6 +17,16 @@ resolver = "2"
|
|||
name = "onionwire_sdk"
|
||||
crate-type = ["cdylib", "lib"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
# The in-process Monero chain daemon (Cuprate). Off by default: it pulls a
|
||||
# pinned `cuprated` git revision, ~152 crates and a C++ RandomX cross-build
|
||||
# (+11.8 MiB on an aarch64 release binary). Without it the SDK can still store
|
||||
# and read back a `ChainChoice.InProcessCuprate` setting — starting one fails
|
||||
# with the core's "rebuild with --features cuprate-daemon" message.
|
||||
cuprate-daemon = ["onionwire/cuprate-daemon"]
|
||||
|
||||
[dependencies]
|
||||
onionwire = { path = "../..", default-features = false, features = ["rustls"] }
|
||||
# `static-sqlite`: Android has no system libsqlite3 to link against.
|
||||
|
|
|
|||
Loading…
Reference in a new issue