docs: Cuprate in-process launch spike A — testnet launch, RPC and sync evidence
Spike A of the Cuprate exploration: Node::launch(config).await runs a real testnet chain daemon in-process (no monerod, no subprocess). Unrestricted RPC on 127.0.0.1:18089 answers get_info, /get_height and get_block (heights 0, 1, 2, 1000) with monerod-shaped payloads, and clearnet P2P synced 0 -> 23,758 testnet blocks in ~120s. Verdict VALIDATED with four parity gaps recorded: out-of-range get_block returns a bare HTTP 500 with an empty body (monerod returns a JSON-RPC error object), get_info reports zero peers while syncing, restricted get_info returns placeholder database_size/version, and the version label is 0.1.0-preview-release.
This commit is contained in:
parent
c090f16dab
commit
12db06b2ed
2 changed files with 154 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ A rust-dev card may explore baking a Monero chain daemon directly into the Onion
|
|||
|
||||
- **`rust-dev`: Spike — embed `cuprated` (git dep) alongside `arti-client` 0.46, verify `Node::launch(Config).await` compiles and the documented usage (`node.blockchain.context().chain_height`) type-checks.** PROOF OF CONCEPT: `cargo check` passed (exit 0) with 575 packages; `arti-client` 0.44 (Cuprate) and 0.46 (OnionWire) coexisted. `cuprated::Node::launch(config: impl Into<Arc<Config>>) -> Result<Node, anyhow::Error>` is accessible. `Node` fields: `blockchain`, `txpool`, `clearnet`, `tor`, `config`, `task_executor`; implements `Drop` → `shutdown()`. Config is at `cuprated::config::Config`. See `references/cuprate-integration.md` for full test log.
|
||||
|
||||
- **`rust-dev`: If spike passes, actually launch Node::launch on testnet/fakchain, verify sync starts and monerod-compatible JSON-RPC (get_info, get_height) responds with the chain data OnionWire needs for receipt verification.**
|
||||
- **`rust-dev`: If spike passes, actually launch Node::launch on testnet/fakchain, verify sync starts and monerod-compatible JSON-RPC (get_info, get_height) responds with the chain data OnionWire needs for receipt verification.** PROOF: in-process launch on testnet works — `Node::launch` returns in ~2.8 s cold, the unrestricted RPC on `127.0.0.1:18089` answers `get_info` / `/get_height` / `get_block` (heights 0, 1, 2, 1000 all retrievable) with monerod-shaped payloads, and the node synced 0 → 23,758 testnet blocks in ~120 s over its own clearnet P2P. Four parity gaps are recorded (bare HTTP 500 on out-of-range `get_block`, `get_info` peer counts always 0, restricted `get_info` placeholder `database_size`/`version`, and the `0.1.0-preview` version label) in [docs/cuprate-launch-spike.md](cuprate-launch-spike.md). Verdict: Phased Phase 1 is viable, with those gaps handled before `monero-wallet-rpc` is pointed at it.
|
||||
- **`rust-dev`: If launch spike passes, assess wallet gap.** Since Cuprate has no wallet layer, determine whether to (a) keep `monero-wallet-rpc` as a subprocess and point it at the in-process Cuprate daemon (halves Android binary spawning), or (b) also adopt `monero-oxide`/`monero-wallet` as an in-process wallet to eliminate all subprocesses.
|
||||
|
||||
This card does **not** pre-empt the existing subprocess-based cards in §9 — those remain the default path until Cuprate proves itself in-process.
|
||||
|
|
|
|||
Loading…
Reference in a new issue