01 · Storage Architecture
- Crate
- xrpl-bonneville
- Persisted
- 31,202 TPS
- Index
- In-RAM SHAMap
- Log
- Append-only · CRC32C
- Undo
- Pointer-only journal
Bonneville Flat-State Engine (xrpl-bonneville)
The 16-way SHAMap stays for hashing and the peer protocol. It is no longer the on-disk layout. Following Erigon/Reth and Solana's AccountsDB, Bonneville writes each state object once to an append-only flat log and keeps the hash tree in RAM as the index.
- 1 disk read per lookup, 1 write per changed object instead of 6-level NuDB/RocksDB hash walks and inner-node write amplification.
- Pointer-only undo journal: Object segments are append-only, so ledger rollback entries are pointers, not copies of the object.
- Off-lock compaction & hardware SHA-NI/AVX2: Parallel tree rehashing, zero-alloc
Log::read_key, and periodic tree checkpoints for fast crash recovery. - Bit-exact
account_hashparity: Wire messages, ledger hashes, and RPC output matchrippled.