Repository navigation
v0.9.1
Two fixes, one of them a security advisory. In-place safe from 0.9.x and 0.8.x: no data migration, no config changes.
Upgrade if you index with block_timestamps on (the default), or if you care about the decode path.
A timestamped backfill could not complete — 0.9.0 shipped without saying so
v0.9.0's headline was OBIB case 1 in 74.8 s. That figure is --no-timestamps, and it stands — reproduced four times. What the notes did not say, because the run that proves it had not failed that way yet when they were written, is that a timestamped case-1 backfill at --concurrency 8 did not finish, even with 0.9.0's body-read-timeout fix.
It finishes now, and the A/B has a number:
| wall clock | events | RPC requests | peak RSS | |
|---|---|---|---|---|
--no-timestamps |
74.8 s | 294,278 | 321 | 320 MB |
| with timestamps | 1689.1 s | 294,278 | 2,099 | 461 MB |
22.6×, byte-identical output modulo the column, and 6.5× of all requests are timestamps.
That also revises RFC-0029's own estimate. It measured timestamps at ~85% of backfill wall clock; 22.6× implies ~95.6%. Not because timestamps got slower — because adaptive windows (0.9.0) cut the log-fetching half to 321 requests, so the timestamp half went from dominant to overwhelming. A "percentage of wall clock" is only meaningful against the wall clock it was measured on.
The same defect, a third time
fetch_timestamp_batch reissued the same batch size five times and then killed the backfill. That is the shape of all three failures RFC-0029 has now fixed:
| # | Where | Trigger |
|---|---|---|
| 1 | getLogs status codes (0.8.2) |
HTTP 400 not enumerated |
| 2 | getLogs body read (0.9.0) |
the request timeout covers body streaming |
| 3 | timestamp batch (this release) | same, and no narrowing path at all |
So the rule now sits above the fixes, because patching a fourth instance is not a plan:
A batched RPC call needs a narrowing path, not just a retry path.
There is also an interaction nothing accounted for: MAX_TIMESTAMP_BATCH (200) × TIMESTAMP_FANOUT (4) × --concurrency (8) is up to 32 concurrent large responses sharing one connection pool and one timeout budget, and nothing bounds that product — while 0.9.0's adaptive windows grew each window to 100,000 blocks. Halving on failure adapts to that without anyone having to predict it, which beats retuning constants whose right values depend on the provider, the contract's density, and the concurrency you chose.
Security: RUSTSEC-2026-0220 (ruint), in the decode path
ruint 1.19.0 → 1.20.0. It reaches us through alloy-primitives, which is our ABI decode path.
The advisory: Uint::overflowing_shl/overflowing_shr returned false-negative overflow flags, which propagates — checked_* return Some instead of None, strict_* fail to panic, saturating_* wrap instead of saturating. Shifted values were always correct; only the flag was wrong. Separately, wrapping_shl/wrapping_shr truncated the shift amount modulo 2³².
Decode output is unchanged — the full golden/deterministic suite passes across the bump. Determinism in the decode path is a non-negotiable here, so that is verified rather than inferred from the advisory text.
How it was found, which matters more than the fix
cargo-deny had started failing on every PR. The cause looked like tooling: a newly published advisory uses CVSS 4.0, our pinned cargo-deny could not parse it, and so the entire advisory database failed to load and the job errored.
It failed closed, which is the right direction. But the visible symptom was "the scanner is broken" — a red check with an obvious innocent explanation, on a branch that touched no dependencies. The tempting move was to bump the action and move on. Reading it properly found RUSTSEC-2026-0220 live in the tree, invisible for as long as the parse had been failing.
Two things we are carrying forward from that:
- A security gate that looks like tooling breakage deserves the same scrutiny as one naming a CVE.
- "The scanner ran but checked nothing" is a distinct failure state, and today it was distinguishable from a clean scan only by reading the log.
The advisory database is a live external input whose schema moves. A scanner that hard-fails on an unknown CVSS version is one upstream change away from blocking every release, so that job is now documented as needing to stay current rather than pinned-and-forgotten.
Verifying the download
curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.1/nuthatch-x86_64-unknown-linux-gnu.tar.gz
curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.1/nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256
sha256sum -c nuthatch-x86_64-unknown-linux-gnu.tar.gz.sha256| Artifact | Contains |
|---|---|
nuthatch-x86_64-unknown-linux-gnu.tar.gz · :0.9.1 · :latest |
embedded — no database driver |
nuthatch-scaled-x86_64-unknown-linux-gnu.tar.gz · :0.9.1-scaled |
scaled — worker, control, serve --hot-store |