Cinder

All posts

design

Posts on design decisions in Cinder: the data structures, the choices behind them and the measurements that decided them.

  1. The disk of a full node, by calculation: from about 2.08 TB to about 1.1 TB, and what we measured for after 1.0A calculation, not a measured node. On 2026-11-05 we added up the disk of a full Cinder node on mainnet: about 2 080 GB. reth needs 1 056 GB. Three changes on the 1.0 line bring the calculation to about 1 060 to 1 115 GB. They are compressed bodies, compact transaction lookups, and no lookups for blocks without bodies. Then we measured the next options. Frames of 32 bodies save 15% at 40 times the read cost. Headers barely compress. A sorted write does not fill the lookup pages.
  2. Compressed block bodies: about half the disk, and an estimate that was wrong by a factor of twoA full Cinder node kept each block body after the merge as it was: about 1 407 GB on mainnet. Our design estimate was 600 to 700 GB. Now each body is one zstd frame. The body table takes 0.481 of its pages for blocks across the eras after the merge, and 0.366 for recent blocks. That gives about 648 to 677 GB. The writer pays about 0.5 ms of CPU per recent block, and a read about 90 µs. A replay with an A/A control shows no newPayload effect larger than its noise band of about 0.3 to 0.5 ms.
  3. A hash is not a node: trie references of 36 bytes instead of 208A profile of the state root found about 109 000 trie node objects per mainnet block for about 9 500 decoded nodes. Most of them were children that are only a hash, and each one got a full node of 208 bytes. We made a hash reference a node of 36 bytes. On 1 074 mainnet blocks, a block took 0.923 of the time before. The work memory of a block is 37% smaller, and every root is the same.
  4. Sparse eth_getLogs: the header bloom says yes too oftenOn mainnet today, the log bloom in a block header lets a rare address or topic through on 31 to 46% of blocks. Only 0.1 to 0.5% of blocks have a match. Cinder 0.9.5 keeps a small row of log key fingerprints for each block. Against reth 2.7 on the same head, sparse queries over 10 000 blocks got 113 to 143 times the requests per second. All 1 195 compared answers were equal.