fix(opstack): subscribe to V4 blocks gossip topic (Base mainnet post-Isthmus)#2
Closed
amunt0 wants to merge 5 commits into
Closed
fix(opstack): subscribe to V4 blocks gossip topic (Base mainnet post-Isthmus)#2amunt0 wants to merge 5 commits into
amunt0 wants to merge 5 commits into
Conversation
7a82849 to
8084a10
Compare
Base mainnet's sequencer publishes signed unsafe heads on the V4 topic (/optimism/<chain_id>/3/blocks) since Isthmus; subscribers listening only on the V3 topic (/2/blocks) receive nothing and the consensus server never serves a head. Matches the symptom of the public operationsolarstorm mainnet feeds (502 / no data) while base-sepolia still works. Keep V3 subscription for chains that still publish on it; the handler verifies the same sequencer-signed commitment envelope on both.
8084a10 to
e6d8281
Compare
Author
|
Superseded by the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The opstack consensus server is deaf on Base mainnet: it peers fine but never receives a block and never serves a head at
/latest.Root cause (sourced, no guesswork): OP-stack gossips each new block on a versioned topic, and the sequencer publishes to exactly one version — selected by hardfork (op-node
p2p/gossip.go):/optimism/8453/2/blocks(V3)/optimism/8453/3/blocks(V4)withdrawalsRoot)Upstream a16z master has the same V3-only subscription — this very likely explains why all of a16z's
*.operationsolarstorm.orgmainnet feeds are down (HTTP 502) whilebase-sepoliastill works.Fix
7 lines in
opstack/src/server/net/block_handler.rs: subscribe to the V4 topic alongside V3 (kept for chains that haven't activated Isthmus). Same sequencer-signed commitment envelope verification on both topics —SequencerCommitment::new+ signature check against the network'sunsafe_signerare payload-version-agnostic on the server side.Verification (2026-06-03)
--network base, 80 gossip peers, 0 messages,/latest= null/optimism/8453/3/blocks(59,502 bytes) — empirically confirms V4 is the only live topic/latestserves a live signed Base mainnet head → a helios opstack client at the production rev consumed it end-to-end (tracked Base mainnet via/latest+ execution RPC)Also in this PR
masterwas fast-forward synced to upstreama16z/helios@1fbb9099beforehand (standard fork sync, a16z's own code)masterproperly — they were previously dangling off-branch (the production Cargo pina4fed54pointed at them)After merge
helios-wrapper/Cargo.tomlrev pin to the merge SHA (1-line PR) → rebuildshelios-wrapper+helios-consensusimages