WO-17 — Local node, Phase 1¶
Branch: wo-17-node, based on wo-16-cli-wallet at 195760988b99f09b92c6645095440a18d6c577a3
Status: Phase-1 implementation and targeted checks pass; the long local chain exercise remains for the owner to run.
Scope: single-machine local node; no P2P. Phase-2 payout and stake rules remain open as decision #27 and are disabled in this work order.
Phase-1 consensus boundary¶
Miner receives 80% of every block reward plus transaction fees.
N-pool and Z-pool shares are computed each block and accrued in consensus-tracked balances. They never mint and carry over; no pool payout outputs are allowed.
Rad events (event type 0x02) and stake-lock outputs (output type 0x02) are invalid while the Phase-2 activation height is unset. The unset value means disabled.
Block QTL outputs (type 0x04) and commitment events (type 0x03) remain active under CHAIN-DESIGN §2f and decision #24.
Phase-2 economics, including Rad-finder and stake payouts, remain open under decision #27.
Implementation¶
Added the
nodelibrary ande46-nodeCLI using the existing E46 libraries and the filesystem; no new libraries were added.The node initializes from and verifies the frozen WO-10 testnet genesis, stores blocks as local records, rebuilds state from stored blocks, tracks per-branch UTXO/pool/commitment state, and selects the chain with most cumulative work.
Validation checks ASERT bits, MTP/future time, PoW, transaction Merkle root, coinbase lock height and final witness commitment, transaction signatures/amounts/maturity/locks/double spends, Phase-1 pool accrual, event ordering/type/root, and Block QTL commitments/reveals.
The local miner supports 1–4 workers. CLI commands are
getblock,gettx,balance,submit, andmine.Phase-2 payout, Rad and stake-lock behavior was not implemented. The activation height remains unset, so Rad and stake-lock consensus is disabled as #26 requires.
Verification¶
Release build:
cmake --preset release && cmake --build --preset release --target e46-node node_tests— passed with-Wall -Wextra -Werror.Full release suite:
ctest --test-dir build/release --output-on-failure— 41/41 passed.Sanitizer pass:
cmake --preset sanitize && cmake --build --preset sanitize --target e46-node node_tests && ctest --test-dir build/sanitize --output-on-failure -R '^node_unit$'— passed under ASan/UBSan.Node unit coverage verifies frozen-genesis initialization/reload, zero initial pool balances, and rejection of an unknown parent. The CLI smoke check read height 0 and reproduced the frozen block ID
808be9c63f218066409e125a3a59468979c2e9525eb43104fe7832ffe1efd8e1.Available disk remained about 3.3 GiB, above the 1 GiB stop threshold.
The 200-block maturity/payment/reorg exercise was not run here, per the owner’s request to leave the long test for local execution. Run a fresh local mining pass with:
cmake --preset release && cmake --build --preset release --target e46-node node_tests && ctest --test-dir build/release --output-on-failure
build/release/e46-node --datadir /private/tmp/e46-wo17-testnet mine 200 te461qejch5u38psw5q8sngls0hvdv2vrc6uk38ft0qyks3d9g6g0qymzq5v9k00
The address is a public testnet fixture address from WO-05. The second command mines 200 blocks and persists them under /private/tmp/e46-wo17-testnet; the complete maturity, signed-payment, invalid-block, and reorg criteria still need to be exercised before declaring WO-17 fully verified.
First testnet payment submitted¶
2026-10-10 — Confirmed in local testnet block 268.
Mik3XC reported the first ordinary E46 testnet payment submitted to the local
Phase 1 node. The supplied validator output is 1, and the owner reports
ACCEPTED. This exact transaction was subsequently verified in block 268.
This milestone concerns an ordinary signed payment; coinbase transactions
already exist in the testnet chain.
Item |
Recorded value |
|---|---|
Version |
1 |
Inputs / outputs / witnesses |
1 / 2 / 1 |
Funding output |
Block 154 coinbase, output 0 |
Input amount |
35.09521485 E46 (3,509,521,485 base units) |
Payment |
1.00000000 E46 (100,000,000 base units) |
Change |
34.09520485 E46 (3,409,520,485 base units) |
Fee |
0.00001000 E46 (1,000 base units) |
Lock time / sequence |
0 / 4294967295 |
Witness |
Single-owner; 7,856 signature bytes |
Serialized size |
8,030 bytes |
Chain tip at the preceding local check |
257 |
Confirmed block |
268 |
Confirmed block ID |
|
Transaction ID:
df6fe5245b8326b0486b1727481604414dc8928e3300c7df78629cecdb18d8ab
Witness transaction ID:
52d4cfbac4f12d9b50b6900ecde65a53e5d083239769db0ccda9ac240a7d792f
Input signature hash:
b5d671b26403e6abdb5209d533adc07ccba42258a08aacb0d2906aa4b29acf15
The complete signed bytes are preserved in the transaction hex archive. Decoded fields and a structured receipt retain the input, both output payloads, public key, amounts and identifiers. Decoding the saved bytes reproduced the supplied TXID, WTXID and signature hash.
Blocker found at submission: submit placed a transaction in the node’s
in-memory mempool, but the one-shot CLI then exits. A separate mine invocation
did not retain that submission. Acceptance here did not mean the payment was
still queued, broadcast to peers, or confirmed.
No transaction was resubmitted or mined while recording this milestone.
Restart persistence follow-up — 2026-10-10¶
Accepted signed bytes are now written atomically to
mempool/<txid>.txbeforeACCEPTEDis returned. Startup revalidates signatures, filename/TXID, UTXOs, maturity and locks. Confirmed entries are ignored; mined entries are removed from the disk cache. The cache contains public signed transactions, not wallet keys.Added
mempoolinspection andtemplate ADDRESSpreview (NOT_MINED). Candidate construction revalidates ordinary pending spends against the tip.CLI submit/mining commands hold a datadir writer lock. Stop old running executables before using the updated commands; those older processes do not participate in the new lock.
Rebuilt
e46-nodeandnode_tests. Targeted release checks passed:node_unitandwallet_cli_integration(2/2).e46/tests/verify_mempool_restart.pypassed against a disposable copy of the owner’s public block records and the archived signed payment. It checked restart persistence, duplicate rejection, writer locking, read-only access, tampered signatures, mismatched filenames, corrupt sibling files, failed-save cleanup and inclusion in a two-transaction candidate (coinbase plus payment).No live-chain transaction was submitted and no block was mined by this check. Resubmit the archived bytes once with the rebuilt CLI, then mine and record the containing block. The command sequence is in the root README.
This verifies the ordinary-payment restart path, not the full outstanding reorg/QTL exercise. Local persistence does not add peer networking.
First payment mined and checkpoint enforced — 2026-10-10¶
The follow-up above is complete: validated local block 268 contains the archived
payment df6fe5245b8326b0486b1727481604414dc8928e3300c7df78629cecdb18d8ab
and one coinbase transaction. The recipient balance reads 100,000,000 base units
(1 E46). Resubmitting this payment reports a spent input because the containing
block has already consumed it; an empty mempool is expected.
e46/src/node.cpp now enforces the (268, block ID) checkpoint listed above
during both disk replay and block acceptance, while retaining all normal block
validation. This is the owner’s explicit early testnet milestone exception to
the proposed 1,000-block release-depth policy in CHAIN-DESIGN §2c. Clients using
this build must share this exact block at height 268; independently mined
testnet histories will not pass that height with a different block.
The release node rebuilt successfully and loaded the live block store through
the new checkpoint. Read-only getblock 268 reproduced its block ID and payment
TXID; balance reproduced the recipient’s 1 E46. No additional mining or
transaction submission was performed by the checkpoint update. No new test
suite was run for this update; conflicting-branch regression coverage remains
outstanding. The separately running miner must be restarted to use this build.