Cinder

Cinder 0.9.7: security fixes, a read-ahead for runs of slots, and two answers that stopped the release

TL;DR

Cinder 0.9.7 came out on 2026-11-05. Most of it is security work: P2P, node discovery, the Engine API, the JSON-RPC server, the transaction pool and the tracers. Update soon if you run a node or serve JSON-RPC. There are two other changes. Block execution reads ahead in runs of storage slots. In a desktop replay with a simulated cold read, blocks with the two transaction kinds that read such runs took 26 to 37 ms less. Other blocks were not slower. We have no live number yet. The writer now uses the oldest free pages of the database first. On a live node, the newest-first order was half of the file growth. The release checks found two differences from reth on the way. The first was a vmTrace step of a contract creation whose code deposit fails. We fixed it. The second was the form of a filter id: reth writes it without leading zeros. That is by design in 0.9.7, and we plan the parity fix for 0.9.8. The check hid it two times before, because a second read gave a 32-digit id. The final check ran 89 minutes on live mainnet: 444 of 444 blocks VALID, 67 256 answers compared with reth 2.7, 0 others.

0.9.7 came out on 2026-11-05. It is a release that most users will not see on the wire, and that is the point of most of it. The larger part is security work. There are also two changes in how a block reads and writes the database, and two differences from reth that the release check found before the release.

I start with what changed for you. Then I tell how the release check stopped the release two times, and why the second stop taught us more about the check than about the client.

What changed for users

Security fixes: update soon

0.9.7 fixes security issues in six areas. The release notes rate the update priority as high for node operators and for JSON-RPC users. I do not give more detail here than the changelog gives. In short:

Most of these fixes follow reth’s rules where reth has a rule. Two new limits have no match in reth: filters for each client (--rpc-filters-per-client) and the total of logs subscriptions (--rpc-max-log-subscriptions). Both are on the Differences page.

Before you upgrade, three notes.

No new import is necessary. The upgrading page has the details.

Read-ahead for runs of storage slots (#361)

This one began as a question in an earlier record about slow blocks. Two transaction kinds to one contract read runs of storage slots with consecutive keys. The database keys a slot by its hash, so the slots of a run are not near each other on disk. Each slot was a cold read of its own, on the thread that executes the block.

The rule in 0.9.7: when a block reads slot K of a contract, and it read slot K-1 of that contract before, the node also reads the slots K+1 to K+4 on its I/O threads. When the block asks for them, they are in the cache. A block reads ahead at most 4 096 slots. Execution still reads each slot again from the cache, so the read-ahead cannot change a result. It is on by default. CINDER_READ_AHEAD=0 turns it off.

Why 4, and not 8 or 16. The slots of that contract are structs of 6 consecutive slots. A block reads K and K+1 cold. K+2 to K+5 are the rest of the struct. Four slots ahead reads exactly these, and the block then used 72% to 77% of them. In the model, a larger window read past the struct: more extra reads, not more gain.

In a desktop replay, blocks with the two kinds took about 26 ms less. Other blocks did not get slower.

keptrejectedleft of 0 is faster
Blocks with 0xc2580804 transactions223 blocks-26.8 ms
Blocks with 0xb1ae2ed1 transactions39 blocks-25.8 ms
Blocks with neither kind775 blocks-0.2 ms
All blocks1 018 blocks-0.7 ms
Change of the block time with the read-ahead on, against off, in ms. Paired median per group with the 95% bootstrap interval. Left of 0 is faster. Replay of the 1 074 mainnet fixtures (the first 64 only fill the history). A simulated cold read of 150 us for the first read of each key, 3 runs per arm in alternating order. Measured on 2026-11-03 and 2026-11-04 on a development desktop. Record: docs/results/2026-11-slot-read-ahead.md.
Blocks (1 074 fixtures) Blocks Off, ms On, ms Paired median, ms A/A control, ms
with 0xc2580804 223 131.0 97.7 -26.8 +0.1
with 0xb1ae2ed1 39 103.3 78.0 -25.8 -0.1
neither kind 775 28.3 27.5 -0.2 +0.0
all 1 018 40.2 38.5 -0.7 +0.0

The record has a second run, on 413 October blocks. Over both runs, the groups with the two kinds took 26 to 37 ms less at the paired median.

What this replay does not show. The disk in the replay is a model: a fixed 150 us for each first read, and no queue. On a real node, the read-ahead adds about 600 to 800 reads per block, and we have not measured their cost on the disk queue. The live A/B on the test instance comes after the release. Until then, I give you no live number, because we have none.

The database file grows more slowly (#294)

An earlier record looked at why the database file of a live node grows. Half of the growth, 4.7 GB per day of 9.4 GB, came from the order in which the writer used free pages. It took the newest free pages first, and the oldest free pages stayed unused. 0.9.7 takes the oldest first.

In the writer model, the file grew by fewer than half of the pages per block.

RowNewest free pages first (0.9.6)Oldest free pages first (0.9.7)
Pages added to the file per block, blocks 250 to 1 500245 pages per block68 pages per block
Pages added to the file per block, blocks 1 000 to 1 500251 pages per block102 pages per block
Database pages added to the file per block in the writer model, with the newest-first and the oldest-first order of free pages. A model of the writer, not a live node. Measured on 2026-11-01 on a development desktop. Record: docs/results/2026-11-reclaim.md.
Writer model Newest first Oldest first
Pages added per block, blocks 250 to 1 500 245 68
Pages added per block, blocks 1 000 to 1 500 251 102

Block execution did not change: in a replay of 1 074 mainnet blocks, the total time was 0.996 of before (95% interval 0.982 to 1.010). We also had a second option: write the undo record in rows of 1 KB or less. We did not build it. The first option had no latency cost, so the second was not necessary. A database that has free pages now uses them again first. The live A/B of this change is also still open.

Block building keeps the EIP-7934 limit (#352)

From Osaka, a block must fit a size limit of 8 MiB. Cinder’s builder had no size limit. With a build gas limit above about 84M, transactions with much calldata could make a block that the node then refused. Now the builder counts the size as reth does, skips a transaction that does not fit, and tries the next ones.

What the release check found

The rule of the check is the same as for 0.9.5 and 0.9.6. The release build runs on live mainnet next to reth. Every block must be VALID. Every JSON-RPC answer that differs from reth is either a difference by design, with its reason on the Differences page, or a bug. A bug stops the release. The post What the 0.9.5 release check found explains the method.

This time, the check stopped the release two times.

Candidate one: a RETURN that did nothing wrong (#399)

A contract creation can fail after its last instruction succeeded. The code runs, RETURN gives the code to deploy, and then the code deposit fails. Three conditions do this: the creation does not have the gas for the code, the code starts with 0xef, or the code is larger than the limit.

The check found a mainnet transaction of the first kind in a trace_replayTransaction with vmTrace. Both nodes gave the same steps and the same “Out of gas” in the trace part. Only the last step differed. reth gave the RETURN its result: the gas that remains and the empty stack. Cinder gave "ex": null, as for a step that stopped the run. The struct logger of debug_traceTransaction had the same fault: it gave the step an error.

Who is right? The RETURN did not fail. The creation failed after it. reth takes the status of a step at the end of the step, before the deposit check. That is the better model, so we took it. Now the RETURN step keeps its result in vmTrace and in the struct logger. The trace, stateDiff and callTracer answers do not change.

Two things I want to say about this one. The code was older than 0.9.6, so it was not new in 0.9.7. The 0.9.6 check did not meet such a transaction in its hour. That is what one hour of traffic means. And the fix came with three new scenarios in the check, one for each deposit failure, so the next check does not wait for mainnet to send one.

A second vmTrace fix is in 0.9.7 too. A call to a delegated account (EIP-7702) now shows the code of the delegate when the call starts, as reth does (#348). The nightly comparison with reth found that one on a mainnet block.

Candidate two: a filter id with one digit less (#402)

The second candidate’s check found this:

reth writes a filter id without leading zeros. Our ids always have 32 digits. A random id starts with a zero digit about 1 time in 16, so about one reth id in sixteen is shorter.

The part that I find more interesting is the history. The same difference was in the 0.9.6 check and in the first 0.9.7 check. Both times, the check asked the scenario again, as it does for every difference, to rule out a head that moved between the two reads. A new filter gets a new random id. Both times, the second id had 32 digits. So the check counted the answer as “changed between the reads, equal when read again”. The rule that protects against a moving head had hidden a fixed form difference, two times.

What we decided:

Why not fix it in 0.9.7? A client that gives the id back without a change, as the spec expects, does not see a difference. A fix restarts the check from the beginning, and the release carried the security fixes. So the parity fix goes into the next release.

One late block, as designed

During the final check, one late block of a side branch, 34 blocks below the head, got ACCEPTED. That is the designed answer. In the Engine API, ACCEPTED means that the node took the payload but did not check it as a part of the canonical chain. For a late block of a side branch, that is the right answer, and it is not an error.

The final check

444 of 444 blocks were VALID, with no INVALID, SYNCING or error answer. The check compared 67 256 JSON-RPC answers with reth.

Three release checks, the same result: no answer in “other”. The axis is log, so that the small classes are visible.

Row0.9.5 release check0.9.6 release check0.9.7 release check
Equal to reth 2.767 316 answers56 425 answers66 339 answers
Different by design (each with its reason)913 answers792 answers914 answers
Changed between the two reads, equal when read again3 answers3 answers3 answers
Other (a new difference) (none: 0 gets no bar)0 answers0 answers0 answers
JSON-RPC answers of Cinder compared with reth 2.7 in the release checks of 0.9.5 (2026-10-22), 0.9.6 (2026-10-25) and 0.9.7 (2026-11-05), by class, log axis. Seven passes each, live mainnet, the test instance and reth at the same head. Record: the 0.9.5, 0.9.6 and 0.9.7 entries of the changelog.
Class 0.9.5 0.9.6 0.9.7
equal 67 316 56 425 66 339
different by design 913 792 914
changed between the reads of the two nodes, equal when read again 3 3 3
other 0 0 0

One more by-design answer than in 0.9.5 is not a new class of difference by itself. The totals depend on the blocks of that hour. The changelog gives the totals only, so I cannot split them by pass.

Speed: no slower blocks. In a desktop A/B on 1 074 mainnet blocks, with PGO and ThinLTO builds, a block of 0.9.7 took 0.985 of the time of 0.9.6.

Run Ratio 95% interval
A/B: 0.9.7 against 0.9.6 0.985 0.971 to 1.001
A/A control: 0.9.6 against itself 0.986 0.972 to 1.001

Look at the second row before you read the first. The A/A control runs the same build in both arms, and it gave almost the same ratio. So the distance from 1.000 is the bias of the method on that day, not a gain of 0.9.7. What this A/B says: the security fixes did not make blocks slower. It does not say that 0.9.7 is faster. For the read-ahead, the test that counts is the live A/B.

What 0.9.7 still does not do

The full list of fixes is in the changelog. To try Cinder, ask for access at getcinder.dev/access.