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:
- P2P (#305, #312, #342, #355, #391, #392). Catch-up imports only blocks on the chain of the consensus client’s head. Slow peers and slow inbound handshakes can no longer hold the node’s threads. Body checks use the rule of the block decode.
- Node discovery (#311, #317, #318). FindNode gets an answer only after an endpoint proof, as the discv4 spec says. The crawl accepts only answers that it asked for. A long DNS answer is not read past its buffer.
- Engine API (#306). Connections without a valid JWT can no longer close or keep out the connection of the consensus client.
- JSON-RPC server (#307, #308, #309, #310, #315, #321, #322, #383). Time limits for slow clients. Strict request framing. Reader slots for many requests at once. The batch size limit and filter slots for each client. Linear parameter decode.
- Tracers (#324, #382, #384, #385, #390). The time limit now stops a traced run while it runs. Tracers count the size of their answer while they record. Two tracers find a key in constant time. JavaScript helpers count against the memory limit.
- Transaction pool, block building and other parts (#313, #316, #319, #320, #323, #325, #338). Per-sender limits and eviction by fee, as reth does. Limits for announcements and for transactions that are not checked yet. Blob sidecars, trie paths, the outbound RPC client and the payload builder.
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.
- If your node serves the
debugortracenamespace to other users, set--rpc-timeout. From 0.9.7, the limit stops a traced call or transaction while it runs. Before, the node checked it only between calls. For tracers without a hook for each step, the check costs about 4% of the trace time. Without a limit (the default), nothing changes. - A request that has both
Transfer-EncodingandContent-Lengthnow gets 400, and the connection closes. - P2P catch-up follows a chain of at most 220 blocks. A node that is
more than about 145 days behind does not catch up
over P2P. Use
--backfill-rpcor a new database.
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.
| 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.
| Row | Newest free pages first (0.9.6) | Oldest free pages first (0.9.7) |
|---|---|---|
| Pages added to the file per block, blocks 250 to 1 500 | 245 pages per block | 68 pages per block |
| Pages added to the file per block, blocks 1 000 to 1 500 | 251 pages per block | 102 pages per block |
| 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:
- Cinder:
0x5ccaa817883534451ab4aa6f49e1a7fd, 32 hex digits. - reth:
0xe37cf078a35de9fd82cc2d4536d33a6, 31 hex digits.
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:
- The check no longer asks a filter scenario again. A second read of a random value proves nothing. This is the change that matters most, because it is a change in how we look.
- For 0.9.7, the form is by design. A filter id is a random string that a client gives back without a change. The Differences page says so, and it says: do not use the length of an id as a check.
- We plan parity for 0.9.8. We will write the id in reth’s form.
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.
| Row | 0.9.5 release check | 0.9.6 release check | 0.9.7 release check |
|---|---|---|---|
| Equal to reth 2.7 | 67 316 answers | 56 425 answers | 66 339 answers |
| Different by design (each with its reason) | 913 answers | 792 answers | 914 answers |
| Changed between the two reads, equal when read again | 3 answers | 3 answers | 3 answers |
| Other (a new difference) (none: 0 gets no bar) | 0 answers | 0 answers | 0 answers |
| 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 read-ahead and the free-page order have no live numbers yet. Both are offline results. The live A/B runs after the release.
- Filter ids. Cinder writes 32 hex digits, reth writes no leading zeros (#402). We plan parity for 0.9.8.
- Side chains. A reorg removes the dropped blocks. A payload on a dropped block gets SYNCING, where reth keeps side chains (#146).
- Amsterdam. The 0.9.x line does not implement the Amsterdam fork. It refuses its blocks with a clear message. Amsterdam is in progress for v1.0.
- Not a full node from genesis yet. Cinder takes its first state from a synced reth database. Sync from genesis is the v1.0 work. The roadmap has the plan.
- One hour of traffic. A release check sees the blocks and the calls of one hour. The #399 story shows what that means: a pass says that we found no new difference in that hour, not that none exists.
The full list of fixes is in the changelog. To try Cinder, ask for access at getcinder.dev/access.