Skip to content

v0.9.2

Choose a tag to compare

@cargopete cargopete released this 31 Jul 11:03
· 4777 commits to main since this release
4b40aa6

v0.9.1 described a fix its binary did not contain. This release contains it. In-place safe from 0.9.x and 0.8.x: no data migration, no config changes.

If you upgraded to 0.9.1 for the timestamp-batch fix, upgrade again — you did not get it.

The correction, first

v0.9.1's notes said timestamp batches now narrow on a size failure instead of retrying at the same width. The PR was titled that. RFC-0029 §4c described it as shipped. The source change was not in the merge.

The commit carried four files — ci.yml, Cargo.lock, and two docs — and no src/rpc.rs. A git stash run while switching branches removed the fix and its test from the working tree, and what remained was committed without the file list being checked.

Precisely what that means for 0.9.1:

Claim in 0.9.1 Reality
Timestamp batches narrow instead of retrying Absent from the binary. A timestamped backfill at --concurrency 8 still dies on the timestamp batch
RUSTSEC-2026-0220 (ruint 1.20.0) fixed True — that landed
CI keeps cargo-deny current True
The A/B: 74.8 s vs 1689.1 s, 22.6× True. That run used a locally built binary that did contain the fix, so the measurements are of real code — the code simply never reached main

So 0.9.1 was incomplete and mis-described rather than empty. This release makes the description true.

Why CI did not catch it, which is the part worth keeping

Every check was green on the PR that lost the fix, and green meant nothing: the test that would have failed was in the same uncommitted file as the fix. CI ran against a codebase consistent with neither existing, and reported exactly what it saw.

A green pipeline is only evidence about the code that reached it. Two practices now stand behind releases here:

  • Verify a release against git show --stat for the range, not against what the notes intend to say. Notes claiming an RPC fix, with no src/ file in the diff, is the whole tell — and it takes seconds to look.
  • Never git stash mid-task; commit to a WIP branch. This is the mirror of an older lesson about git add -A sweeping untracked files into a commit: that one silently adds work, this one silently removes it.

What the fix does

fetch_timestamp_batch now splits into a _once inner call plus a self-recursive wrapper that halves the batch on a narrowable failure rather than reissuing it at the same size.

It is the third appearance of one defect, which is why the rule now sits above the fixes rather than beside them:

A batched RPC call needs a narrowing path, not just a retry path.

# Where Fixed in
1 getLogs status codes (HTTP 400 unenumerated) 0.8.2
2 getLogs body read (the request timeout covers body streaming) 0.9.0
3 the timestamp batch (same, and no narrowing path at all) here

There is also an unbounded interaction behind it: 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 0.9.0's adaptive windows grew each window to 100,000 blocks. Halving on failure adapts to that without anyone predicting it — better than retuning constants whose right values depend on the provider, the contract's density, and the concurrency you chose.

Verifying the download

curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.2/nuthatch-x86_64-unknown-linux-gnu.tar.gz
curl -fsSLO https://github.com/nightswatchhq/nuthatch/releases/download/v0.9.2/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.2 · :latest embedded — no database driver
nuthatch-scaled-x86_64-unknown-linux-gnu.tar.gz · :0.9.2-scaled scaled — worker, control, serve --hot-store