docs: Cuprate in-process launch spike A (testnet launch + RPC/sync evidence) #92

Merged
sirius merged 1 commit from wt/cuprate-testnet-spike into main 2026-09-17 03:42:42 +00:00
Owner

Spike A of the Cuprate exploration (section 7a of docs/payment-integration-plan.md).

What was proven, in-process, with no monerod and no subprocess for the chain:

  • Node::launch(config).await returns in 2.84s cold (empty data dir) and 0.95s on resume, and both RPC listeners are accepting TCP within 0.2s.
  • The unrestricted RPC on 127.0.0.1:18089 answers get_info (POST /json_rpc and GET /get_info), GET /get_height, get_block_count over /json_rpc, and get_block for heights 0, 1, 2 and 1000 -- all with monerod-shaped payloads.
  • get_height is not a JSON-RPC 2.0 method in monerod either (core_rpc_server.h registers /get_height as a URI endpoint and get_block_count as the JSON-RPC method), and Cuprate mirrors that split exactly.
  • Clearnet P2P works in-process: testnet synced from 0 to 23,758 blocks in about 120s against a 3.09M target, and the RPC height tracked node.blockchain.context().chain_height at every sample.
  • Dropping the Node handle shuts the node down and the process exits cleanly.
  • Spike binary, release, stripped: 33,256,328 bytes.

Four parity gaps are recorded in the new doc, the first being a real defect rather than cosmetics: an out-of-range get_block returns a bare HTTP 500 with an empty body, where monerod returns an epee JSON-RPC error object with code TOO_BIG_HEIGHT and a readable message. The others: get_info reports zero peers even while actively downloading, restricted get_info returns a placeholder database_size of exactly 5 GiB and a blank version, and the reported version is 0.1.0-preview-release.

Verdict: VALIDATED with caveats -- Phased Phase 1 (Cuprate in-process for chain, monero-wallet-rpc as a subprocess pointing at it) is viable, but the gaps above should be handled before a wallet child is pointed at the endpoint.

Docs-only change; no src/, Cargo.toml or lockfile changes. The throwaway spike crate stays out of the repo at /home/lancelot/.hermes/tmp/cuprate-poc/ (run logs and raw RPC response bodies included).

Evidence: docs/cuprate-launch-spike.md

Spike A of the Cuprate exploration (section 7a of docs/payment-integration-plan.md). What was proven, in-process, with no monerod and no subprocess for the chain: - Node::launch(config).await returns in 2.84s cold (empty data dir) and 0.95s on resume, and both RPC listeners are accepting TCP within 0.2s. - The unrestricted RPC on 127.0.0.1:18089 answers get_info (POST /json_rpc and GET /get_info), GET /get_height, get_block_count over /json_rpc, and get_block for heights 0, 1, 2 and 1000 -- all with monerod-shaped payloads. - get_height is not a JSON-RPC 2.0 method in monerod either (core_rpc_server.h registers /get_height as a URI endpoint and get_block_count as the JSON-RPC method), and Cuprate mirrors that split exactly. - Clearnet P2P works in-process: testnet synced from 0 to 23,758 blocks in about 120s against a 3.09M target, and the RPC height tracked node.blockchain.context().chain_height at every sample. - Dropping the Node handle shuts the node down and the process exits cleanly. - Spike binary, release, stripped: 33,256,328 bytes. Four parity gaps are recorded in the new doc, the first being a real defect rather than cosmetics: an out-of-range get_block returns a bare HTTP 500 with an empty body, where monerod returns an epee JSON-RPC error object with code TOO_BIG_HEIGHT and a readable message. The others: get_info reports zero peers even while actively downloading, restricted get_info returns a placeholder database_size of exactly 5 GiB and a blank version, and the reported version is 0.1.0-preview-release. Verdict: VALIDATED with caveats -- Phased Phase 1 (Cuprate in-process for chain, monero-wallet-rpc as a subprocess pointing at it) is viable, but the gaps above should be handled before a wallet child is pointed at the endpoint. Docs-only change; no src/, Cargo.toml or lockfile changes. The throwaway spike crate stays out of the repo at /home/lancelot/.hermes/tmp/cuprate-poc/ (run logs and raw RPC response bodies included). Evidence: docs/cuprate-launch-spike.md
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.
sirius merged commit 564036813a into main 2026-09-17 03:42:42 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!92
No description provided.