You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
CLI
Fix substreams build packing with whichever substreams binary is first on PATH instead of the one running: the pack step now runs in-process, the same code as substreams pack. With two installs, an older one on PATH made build fail on newer manifest features such as an org-scoped package.name. The substreams gui build view also re-runs the current executable now, not substreams from PATH.
Allow an organization-scoped package.name (<org>/<name>, e.g. sf/uniswap-v4) in substreams.yaml, validated with the same rules as <org>/<name>@<version> references: <org> is 2 to 39 lowercase letters, digits and single hyphens, <name> matches ^[a-zA-Z][a-zA-Z0-9_-]{0,63}$. Where the package name becomes a file or directory name (substreams tools unpack, codegen), / becomes -; the default substreams pack output also turns _ into - as before, so sf/uniswap-v4 at v0.2.0 packs to sf-uniswap-v4-v0.2.0.spkg.
Server
Add state::delete_key(ord, key_ptr, key_len) and state::delete_keys(ord, keys_ptr, keys_len) WASM host functions, the exact-key counterparts of delete_prefix. delete_key deletes one key; delete_keys deletes many in one call, its payload being each key as a little-endian u32 length followed by the key bytes. Each deleted key emits the same DELETE store delta as delete_prefix, and an absent key emits nothing. delete_prefix given a full key also deletes every longer key starting with it, and on the default in-memory store backend each call checks every key in the store; an exact delete is a single lookup. Partial store files record the deleted keys in a new delete_keys field, which the squash into the full store replays; files without it load as before. Available on the wasmtime and wazero runtimes (not on the JavaScript/v8 one). A module that imports either function fails to load on older engines. Deploy tier1, and any remote squasher, no later than tier2: an older tier1 or squasher merging a partial written by a newer tier2 skips the field, so it would keep the deleted keys in the full store. Rust modules reach them through substreams-rs0.8.1-rc.2 (StoreDelete::delete_key / delete_keys).
Fix delete_prefix deletes being dropped from a partial store that tier2 rebuilds from a module's cached outputs: the squash then kept the deleted keys in the full store.
Add an idle heartbeat to tier1 client streams: once a request streams linearly (live, or after back-processing), a progress message is sent whenever nothing was sent to the client for 20s (no block, progress or undo), widening to 30s after 1min and 1min after 5min, or progress_messages_interval_ms when the client sets it. Streams on chains that finalize in bursts (e.g. final_blocks_only on Ethereum PoS, ~6.4min apart) no longer sit silent long enough for a NAT/firewall or load balancer to drop them unnoticed. Applies to dev and production modes.
Add Tier1Config.SubrequestDisappearTimeout: tier1 considers a tier2 disappeared when it sent nothing on a running job for that long, and sends the job to a tier2 again instead of waiting on it indefinitely. This covers a tier2 that disappears behind a load balancer that keeps the stream open. Zero, the default, waits forever. Counted in the new substreams_tier1_worker_disappeared_counter metric.
Fix tier1 streams stalling when the merger falls more than 200 blocks behind the chain: the live hub keeps its final blocks from the last merged-blocks file instead of a fixed 200 blocks, up to Tier1Config.HubMaxKeptFinalBlocks (LiveHubConfig.MaxKeptFinalBlocks for a shared hub, default 20 merged-blocks files worth). While the merger is behind, each tier1 can hold up to that many final blocks in memory, 2000 with 100-block files against 200 before, so lower it on chains with large blocks. app.HubKeepFinalBlocks is removed, app.LiveHubConfig.MergedBlocksStore is required, and app.NewLiveHub now returns an error, which it does when that store is missing.
Fix tier1 placing the linear handoff above the last merged-blocks file when the merger is behind, which left tier2 jobs waiting for files that were not written yet.
Fix firecore tools substreams purge deleting module caches still used by long-running tier1 requests: tier1 now rewrites the last_used markers every hour while a request runs, instead of only at its start. service.WithLastUsedRefreshInterval changes the interval, and zero or less writes them only at request start.
Tier1 and tier2 now send HTTP/2 PINGs on a connection after 30s without reading anything from it, and close it if the PING is not acknowledged within 15s. A connection that dies silently, for example between a load balancer and the pod, now frees its streams in about 45s instead of waiting on TCP timeouts. Before, the HTTP/2 settings were ignored on TLS listeners, and no server PINGs were sent on any listener. The concurrent stream limit per connection stays as it effectively was: 250 on TLS listeners, 1000 on plaintext ones.
Sink
Changed: rename the sink flag --undo-buffer-size to --wait-confirmations, and SinkerConfig.UndoBufferSize to SinkerConfig.WaitConfirmations. It holds the most recent reversible blocks back from the sink until they are final, or until N newer blocks have arrived, in which case they are assumed final. A reorganization within N blocks is absorbed silently, a deeper one is fatal, and N blocks of latency are added near head. The help text and the sink docs now say so.
Deprecated: --undo-buffer-size still works as a hidden alias of --wait-confirmations and logs a warning when used. Setting both is an error. SinkerConfig.UndoBufferSize and sink.FlagUndoBufferSize are deprecated as well; UndoBufferSize still applies when WaitConfirmations is unset.
Security
Bump golang.org/x/crypto to v0.58.1-0.20261009181718-2f1f834330b2 to fix GO-2026-5932.