Cinder

113 equal answers was the wrong number

TL;DR

One live answer for each method matched reth 2.7 for 113 of 114 methods. A matrix of 3 811 scenarios found 1 102 new differences from 28 causes. Most of them were at the edges of the API: error texts, block parameter forms, call fee rules and request framing. Independent reviews of the fixes found more. One request took two minutes of CPU, one request caused a use-after-free, and a lock made the engine wait 91 ms. In the JavaScript tracers, they found a crash, a sandbox hole and a design that was up to 4.4 times slower than reth. In the release check of 0.9.1, 3 677 of 3 766 scenarios were equal, and the other 89 are by design. Each release now gets a one-hour check against reth on live mainnet.

On 2026-10-14, our JSON-RPC docs capture was clean. It sends one live request for each method in our API reference to Cinder and to reth 2.7, and compares the answers. 113 of 114 methods gave the same answer. The other method, rpc_modules, is different by design.

We almost wrote “same answers as reth” on the site. But one request for each method tests one input for each method, and a wallet or an indexer sends many more. So we asked more questions. The count of differences went from 1 to 1 209, and 1 102 of them were new.

Rowanswers or scenarios not equal to reth
Docs capture (of 114 answers, one for each method)1
Wide check, newest 50 blocks (of 11 041 answers)41
Probe of the call fee rules (of 240 answers)108
Scenario matrix, first run (of 3 811 scenarios: 1 102 new, 70 known, 37 by design)1 209
After four fix branches (of 3 811 scenarios: 89 different, 46 known, 2 changed between runs)137
Release check of 0.9.1 (of 3 766 scenarios, all 89 by design)89
Each check asked more questions than the one before it, and each fix removed some. Log axis: each equal step to the right is 10 times more. The first matrix runs made 3 811 scenarios and the release check made 3 766, because the generator picks from the newest blocks. Cinder against reth 2.7 on live mainnet, 2026-10-14 and 2026-10-15. Record: docs/results/2026-10-rpc-parity.md.

Where the 1 102 came from

A scenario is one request with one set of inputs, for example eth_call with a state override on a block of the last hour. The scenario matrix is the list of all of them that our generator makes. It reads the 24 newest blocks. It picks transactions of each type (0 to 4), contract creations, reverts, out-of-gas cases, SELFDESTRUCT, precompile calls and an EIP-7702 account. From these, it makes 3 811 scenarios over 140 method names, some of them misspelled on purpose. The scenarios use normal, edge and invalid values, state and block overrides, tracer options, fee combinations and raw request bodies.

The 1 102 new differences came from 28 root causes. We put the causes in groups:

scenarios, first run
Error textsown texts where reth gives Invalid params with serde text, 54 methods519
Call fee rulesa call with only some of the fee fields156
Block parameter forms"LATEST", a hash as a plain string, objects137
Request framingjsonrpc version, notifications, empty batch, Content-Type66
Hex and number formsno 0x, decimal strings, JSON numbers, 0X61
Other call rulesBLOCKHASH, overrides, chainId, blob and 7702 calls, nonce57
Tracer options and outputenableReturnData, option types, not-found codes34
Parameter count and typesmissing, extra and unknown fields32
Missing blocks and historynull or [] where reth gives an error23
eth_simulateV1 and eth_fillTransactionBLOCKHASH, revert data, moved precompiles, fees17
The 1 102 new differences of the first matrix run, 2026-10-14, by group of root cause. A root cause is one fault in the code: one fix removes all of its differences. The 28 causes and their groups are in docs/results/data/rpc-parity-2026-10.json.

The tracers were good news. A tracer is an option of the debug_trace* methods that records what a transaction did, step by step or call by call. Of 859 tracer scenarios, 830 were equal: callTracer, prestateTracer, flatCallTracer, 4byteTracer, muxTracer, the struct logger (the default tracer: one entry for each EVM step) and trace_replayTransaction, on every transaction type. Most differences were where a client sends something unusual. Some are cosmetic. Many are not. A client that sent a block hash as a plain string got an error from Cinder and an answer from reth. An eth_getLogs range that started below Cinder’s history gave [], with no error, and a client cannot tell that from “no logs”.

We split the causes by code area into four branches: request input, calls, tracers and history. A fifth branch builds the pending block from the pool, as reth does. Each fix started with a unit test that failed. The expected value in each test is a live answer of reth 2.7, not our reading of reth’s code. Changes to execution code ran the execution-spec-tests from Paris to Osaka, with 0 failures. Then each branch went to an independent review. The reviewer read the code, ran the tests, probed live reth and, where input comes from the network, sent hostile input.

Rowfirst runafter four branchesrelease check
eth_* (2 161 to 2 169 scenarios)8887162
debug_* (1 064 to 1 093 scenarios)170447
trace_* (405 to 418 scenarios)6531
net_*, web3_*, txpool_* (50 scenarios)3088
Raw bodies and odd method names (84 scenarios)5499
rpc_modules (2 scenarios, by design)222
Scenarios with an answer different from reth 2.7, by namespace, 2026-10-14 and 2026-10-15. The counts include the known and the by-design differences. After four branches, the tracer branch was not merged yet: 33 of the 44 debug_* differences were its work. In the release check, all 89 are by design. Record: docs/results/2026-10-rpc-parity.md.

What we found, what we did, and why

Each entry below gives what broke, what found it, the fix, and why we chose that fix.

A refund that only the trace showed

What broke. On EIP-7702 transactions, the struct logger added the authorization refund (12 500 for each authorization) to refund from the first step. reth shows 0 there. The gas and the receipts were equal. Found by the wide check: 41 of 11 041 answers over 50 blocks were different, and this was one of the causes. Fix: the struct logger no longer adds this refund. Why: revm applies this refund to the transaction, outside the call frames, and a trace shows the counter of the frame.

Calls pay no gas fee in reth

What broke. A call that gives only some fee fields, for example only maxPriorityFeePerGas: 0x0. We probed the rule with 16 fee combinations, 3 sender balances and 5 methods, and 108 of the 240 answers were different. Found by that probe, and then by the review of the fix: reth 2.7 charges no fee for a call. eth_call, eth_estimateGas and eth_createAccessList set disable_fee_charge. The price limits the gas and sets GASPRICE, but the balance pays only the value. In eth_callMany, a later call that read the sender’s balance saw 1e18 - 5 on reth and 1e18 - 5 - fee on Cinder. Fix: a port of CallFees from alloy-evm, and no fee charge for calls. Why a port: no spec gives these rules. A port of the code that reth runs gives the same answer for the combinations that we did not probe.

Error texts: 519 scenarios over 54 methods

What broke. For a parameter that did not parse, Cinder gave -32602 with its own text, for example invalid block number. reth gives -32602 Invalid params, with serde’s text and position in error.data. Found by the matrix. Fix: a new request reader that reads each parameter with the type that reth gives it, step by step as serde reads it. It also reads the forms that reth reads, for example a hash as a plain block id. Why match the texts at all: some tools and test suites compare error texts. To them, a different text is a different answer. Why one reader and not 54 handler fixes: reth’s text comes from one deserializer with its own position rules, so one reader gives the same text for all methods. The tests hold 1 342 request bodies with reth’s live answers. The cost is about 0.2 µs more for a simple request.

The reader under attack

The review of that reader sent large and hostile requests. What broke, and the fixes:

Why a sort and not a seeded hash: a sort is n log n for every input. A seeded hash is fast only while the seed stays secret, and it needs a good random seed at each start. The sort has no secret to keep.

A use-after-free from one request

What broke. The fast path of the reader freed a method name that had escapes before its last use. One request could trigger it. Found by the re-review, with a test under AddressSanitizer that failed on the old code. Fix: the reader copies the name first. Why we added more: a fix for one path does not show the next one. The reader now has a fuzz target (make fuzz-rpcin). A 10-minute run with 8 workers made 8 466 383 executions and found nothing.

The pending block and a lock on the engine path

What broke. reth builds a real pending block from its pool, so Cinder now does too. Our first design built it on a thread at low priority, and that thread held the pool lock while it copied the pool. engine_newPayload needs the same lock. When other threads took the CPU of the builder, the engine waited. Found by the independent review. Measured: a benchmark with a pool of 30 000 transactions and a client that asks for pending every 100 ms. With two busy threads on the CPU of the builder, the worst engine wait was 90.8 ms. Fix: the request that needs a new block copies the pool itself, at its own priority. It copies only the transactions whose fee cap covers the base fee, and blob transactions without their sidecars. It releases the lock after each 512 transactions. The builder at low priority only orders and executes, with no lock. With the same load, the worst wait is 4.0 ms. The same benchmark without any client gives 2.8 ms. Why the requesting thread: a lock holder at low priority is a priority inversion. Normal priority alone was not enough: a full copy at normal priority still had a worst wait of 13.6 ms. The copy had to be both at normal priority and short.

JavaScript tracers: a crash, and why a separate process

reth runs JavaScript tracers, so Cinder now does too, with the QuickJS-ng engine. What broke. A tracer whose time limit came while the engine compiled its code could crash the node. The compiler released references two times on that path. This is an upstream defect, and the same path runs when memory runs out. Found by the review, with a test harness that stopped the compiler at each check. Fix: the compiler passes no longer stop at an interrupt, and the failure path releases each reference one time. make check-qjs-compile stops the compiler at each check and fails each allocation, one at a time, under AddressSanitizer. These sweeps found more upstream defects in the same failure paths, and we fixed them.

Why we also moved the engine out of the node: we decided that a crash in an embedded engine must not stop the node. The engine now runs in a worker process. If the worker crashes, the request gets -32603 and the next request gets a new worker. We rejected two other designs. A worker that runs the whole transaction would need the full EVM inside the sandbox, and it cannot see the newest blocks that the node keeps in memory. Messages over a socket cost about 14 µs for each round trip, and a step must have its answer before the next opcode.

A hole in the sandbox

What broke. The worker has no files, no network and no new programs: a seccomp filter refuses those system calls. But the filter applied only to the thread that installed it. The watchdog thread of the worker had no filter. Code that took control of the engine could use that thread to open files or start a shell. Found by the review, which read the status of each thread of a busy worker. Fix: the filter now goes to all threads (SECCOMP_FILTER_FLAG_TSYNC), and a test checks every thread of every worker. The same review made us set hard limits on memory and CPU time, and give each request a new worker. A start takes 1 to 2 ms, and the node keeps 2 workers ready.

Up to 4.4 times slower than reth, then faster

What broke. In the first worker design, each step hook waited for the worker. A tracer that counts steps took 141.2 ms where reth took 32.2 ms: 4.4 times slower. A tracer that reads the stack took 154.5 ms, against 123.4 ms on reth. Found by the review, which measured both clients on the same call. Fix: the node now sends the hooks without a wait, and the worker runs them behind the EVM. A db read gets the value of its step from the node’s journal. If a hook throws, or the journal cannot answer, the node undoes the transaction and runs it again with each hook waiting. Why the answer stays the same: each answer comes from one complete run, never from parts of two runs. A tracer sees the same steps and the same state in both modes. Nine test tracers that throw or read state give answers equal byte for byte to the tracer in the node’s process, and 40 cases captured from reth give reth’s answers.

Rowreth 2.7Cinder, in the node's processCinder worker, each hook waits (first design)Cinder worker, hooks behind the EVM (now)
count (a step that counts)31.5 ms10.2 ms141.2 ms22.3 ms
stack (a step that reads the stack, gas and opcode)130.5 ms24.4 ms154.5 ms30.9 ms
db (a balance read at each 100th step)51 ms12.9 msnot measured26.1 ms
result only (no step hook)4.6 ms3.1 ms1.7 ms4 ms
One debug_traceCall of 75 258 EVM steps, best of 5 (reth: best of 7), on a shared machine, 2026-10-15. Log axis. For reth, the lower end of its range. For Cinder, the upper end. The reviewer measured the first design in an earlier run, with no db tracer. Record: docs/results/2026-10-js-worker.md.

Time limits that the engine did not check

What broke. A tracer gets a time limit. But some built-in functions of the engine ran long C loops with no check. A tracer that called reverse() on an array of length 2³² - 1 ran for 367 s. After the fix of the array functions, the next review found string searches with a quadratic cost: 90 to 137 s each. Fix: one watchdog thread for all engines sets a flag at each deadline, and each check of the engine reads that flag. We added checks to the long loops: arrays, strings, Unicode, BigInt, the regular expression compiler and the parser. Why a watchdog thread and not more fixes in each function: each round of fixes in the functions left the next gap. With the flag, a check costs one memory read, so the engine can check often, and a stop does not depend on an estimate of work. In the release test, each of 172 hostile tracers stops within 0.5 s with a limit of 300 ms.

Blocks below the history

What broke. For a block below the first block that Cinder keeps, the block methods gave null, and eth_getLogs gave []. reth gives 4444 pruned history unavailable: requested N, earliest available M. Fix: the same error, with M the first block of this node. Why our own first block: the error must tell the client where this node can answer. reth’s number would send the client to blocks that this node does not have. Found by the review: the fix also gave 4444 for a trace of a block whose state is gone. Live reth gives -32603 insufficient changesets there. The matrix had no scenario for it. What stays until v1.0: Cinder keeps no headers below its first block, so BLOCKHASH there, eth_feeHistory and debug_getRawHeader give 4444 where reth answers. v1.0 brings the full history.

An empty answer with HTTP 200

What broke. After four branches, we ran all 137 scenarios that were still not equal again, plus the 52 differences of a new wide check. Of these 189, 16 were real bugs from 5 causes, and the same work found one more bug outside them. The worst: a callTracer revert reason with bytes that are not valid UTF-8 made the JSON writer fail, and the node sent HTTP 200 with an empty body. One transaction, number 154 of 472, emptied the trace of its whole block. Fix: the node decodes the reason as reth decodes it: each bad byte sequence becomes U+FFFD. And if the writer fails, the node now sends -32603 internal error with the request id. Why both: the first fix gives reth’s answer. The second makes the next failure of the writer visible to the client.

A speed-up on the way

The docs capture also made the struct logger give refund in each step, as reth. With that change, the struct logger writes its steps directly as text. On 30 mainnet transactions, traces of 10 000 steps or more became 2.35 times faster (95% interval 1.96 to 2.67, 14 transactions). Smaller traces show no difference: there, the setup of the block state takes most of the time.

Rowbeforeafter
833 steps71.7 ms85.3 ms
1 524 steps44.2 ms50.1 ms
12 410 steps46.8 ms17.5 ms
30 447 steps136.3 ms45.3 ms
56 418 steps492.5 ms208.2 ms
78 950 steps531.4 ms270.8 ms
debug_traceTransaction with the default struct logger, median of 7 rounds, 6 of the 30 transactions, live mainnet, 2026-10-14. Below 10 000 steps the two builds are level; above it, the new build is faster. Record: docs/results/2026-10-structlog.md.

What we decided not to copy

The release check of 0.9.1

On 2026-10-15, with all fix branches on main, the release build of 0.9.1 ran for one hour on live mainnet next to reth 2.7. Every block was VALID. In that hour, the scenario matrix gave 3 677 equal scenarios of 3 766. The other 89 are all by design, and 0 are bugs. The largest groups are the state window (Cinder keeps the state of 128 blocks), the search by sender and nonce (the error names the state window of each node), and earliest (the first block that each node stored). The wide check over the newest 50 blocks compared 13 750 answers, and 13 690 were equal. All 60 others came from one method, eth_getTransactionBySenderAndNonce. 59 of them are the same 4444 error on both nodes, with each node’s own state window in the message. One was a transaction that was in Cinder’s pool and not yet in reth’s. The differences page lists the differences that stay, with their reasons.

The release also changes code in the executor for the tracers, so we measured the block time too. An interleaved A/B on live mainnet over 499 blocks gave +0.4 ms per block by median, with a 95% interval of -4.7 to +4.2 ms. That is no change that we can measure.

The checks that found the most were not the ones that we wrote for each fix. Our tests checked what we expected. The matrix asked the strange questions. The independent reviews read each fix as an attacker and as a reth user, and they found a two-minute request, a use-after-free, a lock on the engine path, a crash, a sandbox hole and a 4.4 times slowdown. Most of these were in code whose answers were already equal to reth’s.

So we made it a rule. Before each release, the release build runs for at least one hour on live mainnet next to reth. In that hour, every block must be valid, and the scenario matrix, the wide check and the JavaScript tracer cases run against reth. Each difference is either listed as by design or it is a bug. A bug stops the release: it gets an issue, a fix with a test that failed first, a review, and the check starts again.

The fixes ship in 0.9.1 (see the changelog). The wide check is one of Cinder’s tools (cinder-rpc-diff, see the CLI reference). If your application gets a different answer from Cinder than from reth, send the request to [email protected]. Our target is reth’s answer.

Updated 2026-10-23: the one-hour check now runs before each release. In the check of 0.9.5, Cinder and reth 2.7 gave 67 316 equal answers of 68 232, 913 were different by design, and 0 were other differences. Since 0.9.5, Cinder also has reth’s --http.api and --ws.api options (as --http-api and --ws-api), and rpc_modules lists the namespaces that the endpoint serves, as in reth.