correctness
Posts on how we check that Cinder gives the right answers: comparisons with reth, release checks and the bugs that these checks found.
- Cinder 0.9.7: security fixes, a read-ahead for runs of slots, and two answers that stopped the releaseCinder 0.9.7 fixes security issues in P2P, node discovery, the Engine API, the JSON-RPC server, the transaction pool and the tracers. Block execution now reads ahead in runs of storage slots, and the database file grows more slowly. The release checks of two candidates found two differences from reth: a vmTrace step and the form of a filter id. The final check compared 67 256 answers with reth 2.7: 0 others.
- Differential fuzzing of the EVM: 600 tests, 0 differences, and what that does not proveBefore we kept three interpreter changes, a differential fuzzer made random state tests. It ran each one on Cinder's EVM and on an independent reference EVM. The opcode traces and the state roots had to agree. 600 tests in two runs gave 0 differences. This post shows how the check works, the run that changed builds partway, and why a result of 0 is small evidence, not proof.
- Cinder 0.9.6: smaller answers, and three bugs that new tests found firstCinder 0.9.6 compresses JSON-RPC answers over HTTP when the request asks for it, as reth does. The answers become 4.5 to 10.7 times smaller for 1.7 to 3.1 ms of CPU per MB. Before the release, new tests found three real bugs in reorgs and the transaction pool. The release check then compared 57 220 answers with reth 2.7: 0 others.
- What the 0.9.5 release check found before the releaseBefore each release, Cinder runs for one hour on live mainnet next to reth and compares its JSON-RPC answers with reth's. For 0.9.5, the checks of the release candidates found three differences. eth_createAccessList saw the wrong base fee. A revert reason lost its text after a NUL byte. Long revert reasons were cut. Each one stopped the release until it had a fix. The final check compared 68 232 answers: 67 316 equal, 913 by design, 0 others.
- 113 equal answers was the wrong numberOne JSON-RPC request for each method gave the same answer on Cinder and reth 2.7 for 113 of 114 methods. A matrix of 3 811 scenarios then found 1 102 new differences. These are the data, the bugs that the independent reviews found in our fixes, and the reason for each fix.
- Byte for byte with reth: how we check a new execution clientFour layers of checks, from the Ethereum test suite to a live diff of every JSON-RPC answer. And the false alarms that each layer taught us to read.