Skip to content

Releases

eCashd v0.34.6-preview.2

Pre-release

Choose a tag to compare

@schancel schancel released this 05 Dec 08:23

This is the second eCashd v0.34.6 preview, built from the Rust Chronik removal candidate at 6d01ed5872c75e45c4e14e49af0842e54bd04412 (PR givelotus/ecashd#1).

The Rust Chronik server and its build, packaging, and CI paths have been removed. Native C++ Chronik is the sole server implementation. Shared Rust Chronik client/protobuf crates remain for client compatibility.

Verification on the candidate:

  • Native Chronik tests: 468 passed.
  • bitcoind built successfully.
  • Rust Chronik client library tests: 8 passed.

This is a source prerelease for testing, not a production deployment.

eCashd v0.34.6-preview.1

Pre-release

Choose a tag to compare

@schancel schancel released this 03 Dec 06:28

This preview prerelease is a givelotus distribution of ecashd built on top of upstream Bitcoin ABC v0.34.6 (624cb7b16a), incorporating the shared Lotus engine performance, storage, networking, Snowstorm, native C++ Chronik, and observability improvements while remaining consensus- and P2P-compatible with stock Bitcoin ABC.

Note

This is a givelotus preview distribution, not an official Bitcoin ABC release. Test on a separate data directory or non-critical node first.


Highlights vs. Upstream Bitcoin ABC v0.34.6

1. High-Throughput Initial Block Download (IBD) & Validation

  • Cross-block pipelined script verification across IBD batches with overlapped double-buffered batch prefetching and parallel block deserialization (pread over cached read-only block file descriptors).
  • Direct-CoinsTip() block connection bypassing per-block intermediate CCoinsViewCache copy/flush overhead, with exact RAII rollback on failure and geometric 2× CCoinsViewCache::Reserve growth to eliminate quadratic rehashing.
  • Fast-path empty-cache and empty-DB checks: CCoinsViewDB::m_known_empty short-circuit for fresh IBD, empty script/signature cache probe skipping, and deferred SnapSync UTXO commitment tree construction until after IBD.
  • Buffered undo writer & overlapped undo preparation: 256 KiB buffered rev*.dat serialization with bounded undo preparation overlapped alongside script verification.
  • Parallel CheckBlock transaction validation (>= 256 transactions per block) and batched FeeHysteresisController::SyncActiveTip during IBD.

Head-to-Head Full-Validation IBD Benchmark vs. Bitcoin ABC v0.34.6

3-round interleaved A/B replay on identical hardware (Apple Silicon 18-core, -assumevalid=0 -par=16 -dbcache=4096 -prune=2048 -maxmempool=5 -avalanche=0, mainnet blocks 1..132,000 / 798,643 txs; dense window (130,070..132,000] = 104,259 txs), with exact tip hash and bit-for-bit identical rev00000.dat–rev00003.dat undo parity:

Metric (3-round median) Bitcoin ABC v0.34.6 (624cb7b16a) ecashd v0.34.6-preview.1 (bcbe32b29ce2) Speedup
Overall (1..132,000] 48,726 TPS (16.39s) 224,133 TPS (3.56s) 4.60×
Late window (100,000..132,000] 61,772 TPS (9.42s) 294,077 TPS (1.98s) 4.76×
Dense window (130,070..132,000] 69,556 TPS (1.499s) 305,589 TPS (0.341s, peak 317,093 TPS) 4.39×
Total wall-clock (incl. startup & flush) 21.85s 5.67s 3.85×

(Compared to Bitcoin ABC's commonly cited ~12,000 TPS full-chain IBD rate on commodity hardware, the same ~4.4–4.8× validation speedup scales proportionally on full mainnet syncs; a live genesis-to-tip full-chain benchmark is also supported via daemon/bench/commit-regressions/vm_sweep.py.)

2. Storage & Database

  • Durable MDBX storage engine alongside LevelDB with crash-safe LevelDB-to-MDBX migration (retiring LevelDB only after durable commit).
  • Cached read-only block file descriptors with pread and direct reads across raw block records.
  • On-demand prune-height memoization (BlockManager::GetPruneHeight) avoiding repeated full-chain walks.

3. Mempool, Admission & Fee Policy

  • Persistent Merklix overlay & radix-tree mempool structures (NextTxMap, LiveTxTree, persistent arenas, borrowed-pointer SMT lookups) with lock-free UTXO fast-filter hints.
  • Parallel & batched transaction admission: staged/batched admission, testrawtxbatch and submitrawtxbatch atomic package RPCs, and lock-free mempool/scalar snapshot publishing (SnapshotPublisher).
  • Adaptive block-size & fee-hysteresis controller (FeeHysteresisController) with asynchronous policy worker and unified RPC fee-estimation reporting under congestion.

4. P2P Networking, Snowstorm & Avalanche Defaults

  • Snowstorm mempool reconciliation enabled by default: compiled by default (ENABLE_SNOWSTORM=ON), enabled at runtime (-snowstorm=1) across all networks alongside Avalanche post-consensus and staking rewards (conflicting only with Avalanche tx pre-consensus), with held-body mempool policy, template overlay selection, and getsnowstorminfo RPC exposed under network.
  • Avalanche transaction pre-consensus disabled by default: -avalanchepreconsensus=0 and -avalanchepreconsensusmining=0 by default (opt-in via CLI flags), while Avalanche post-consensus block finalization and staking-reward pre-consensus (-avalanchestakingpreconsensus=1) remain enabled so staking nodes remain eligible for staking rewards.
  • Lock-free / low-contention transaction download & relay (TxRelayIndex, peer queue draining, epoch-based relay cleanup, and short-ID relay offered only to peers advertising support).
  • HTTP/2, WebSocket & WebTransport (HTTP/3 over QUIC): ENABLE_HTTP2=ON by default (runtime HTTP/2 enabled on TLS/WebSocket listeners), ENABLE_WEBTRANSPORT=ON automatically on non-Windows depends builds (with -p2pwebtransport=1 default at runtime), and clean NodeClock::time_point timestamp handling for Bitcoin ABC v0.34.6.
  • Upstream-friendly commit structure: All optional features (ENABLE_SNOWSTORM, native C++ BUILD_CHRONIK, ENABLE_HTTP2, ENABLE_WEBTRANSPORT, -snowstorm, -metrics, -p2pwebtransport) are enabled in a single final commit (97f3ed5a34) so individual feature commits remain opt-in if cherry-picked upstream.

5. Native C++ Chronik & HTTP Server

  • In-process native C++ Chronik compiled in by default (BUILD_CHRONIK=ON, pure C++, opt-in at runtime with -chronik=1) with native protobuf codegen, transport-neutral HTTP router, bounded HTTP/2 tunnel writes, graceful stream-end handling, and opt-in WebSocket outbound queue budgets.
  • Crash-safe startup recovery when Chronik is ahead of the validated chain after an unclean stop.

6. Observability, Metrics & Structured Logging

  • Lock-free per-thread Prometheus metrics (-metrics=1 by default, served on /metrics for -rpcallowip clients) covering validation block stages, script-check workers, mempool admission, and cache hit rates.
  • Structured event logging (LogEvent / LogInfoEvent) across validation, mempool, networking, and RPC subsystems.

Verification & Provenance

  • Upstream base: Bitcoin ABC v0.34.6 (624cb7b16a)
  • Published commit: bcbe32b29ce2 (ecashd branch)
  • Full unit test sweep: 171/171 suites passed (*** No errors detected), including snowstorm_host_tests, mempool_policy_tests, outside_mempool_tests, chronik_native_abc_tests, chronik_native_blockreader_tests, http2_tests, metrics_tests, stakingrewards_tests, processor_tests, peermanager_tests, preconsensus_batch_tests, and miner_tests
  • Snowstorm functional tests: feature_snowstorm_ecash.py (default-on Snowstorm + default Avalanche post-consensus & staking rewards) and p2p_snowstorm_stalled_relay.py both PASSED
  • Full-validation mainnet replay (1..132,000]: exact tip hash + bit-for-bit identical undo files