Repository navigation
feat(sequencer): seal payloads on freeze notifications from execution layer (backport #6557 to v1.5.5) - #6567
Merged
Merged
Conversation
Backport of #6557 to releases/v1.5.5.
|
✅ All benchmarks green — 14 within ±2% (deterministic instruction counts). View run Benchmark details (14)
|
Acceptance Tests: ✅ Passed3/3 checks passed · Checks & reports Acceptance report
|
Count seals by trigger, record when getPayload and gossip happen relative to the slot start, and count frozen-payload hints sent by the builder and dropped by the sequencer.
…ed payload id Track the frozen hint on the payload handle so it cannot outlive its build, and treat a hint as having lost to the deadline only when it matches no active build.
It stopped at the handoff to the network actor rather than the publish, so it added little over the getPayload offset.
A Denim build reads the transaction pool once, after the build is requested, so this offset is the deadline for landing in that block.
…elease branch The isolated-sequencer schedule delay that block_deadline applies on main is not on releases/v1.5.5.
Cover build starts recorded outside the ticker, assert the getPayload offset is taken before the request, and describe the build start offset as part of the searcher reaction window.
fahimahmedx
marked this pull request as ready for review
November 12, 2026 06:46
…ck (#6455) Denim activated on mainnet, so the smoke test's wall-clock-based payload attributes became post-Denim attributes, which the engine rejects unless they carry the BaseTime update deposit at tx[1]. Anchor the build timestamp to the last legacy block slot before Denim activation instead: past every scheduled fork and still pre-Denim, so a single legacy block stays valid regardless of when the test runs. Amp-Thread-ID: https://ampcode.com/threads/T-09d6a81e-204d-45bb-a227-69764d686e37 Co-authored-by: Amp <[email protected]> (cherry picked from commit 407af44)
Contributor
|
No actionable findings. The changes are well-structured and safe for block production. Review covered: payload builder notification path ( Key observations:
|
haardikk21
approved these changes
Nov 12, 2026
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.
Summary
Backport of #6557 to
releases/v1.5.5, matching it at b09a2ae. #6557 is still open againstmain, so this carries code that has not merged there yet.When a Denim block finishes building, the execution layer notifies the consensus layer. This starts
getPayload, conductor commit, and gossip immediately instead of waiting for the 150 ms seal deadline, so a searcher reacting to block B can land a transaction in block B+1 instead of B+2.Metrics
Exported by the unified sequencer. Offsets are measured from the block's scheduled build start, which is its parent's timestamp.
reth_base_node_sequencer_seals_totaltrigger:ready_hint,deadlinegetPayload, by what prompted the request. Hit rate isready_hint / total.reth_base_node_sequencer_get_payload_offset_secondstriggergetPayloadwas requested.reth_base_node_sequencer_build_start_offset_secondsreth_base_node_sequencer_payload_ready_hints_dropped_totalreason:already_sealing,inactive,no_build,payload_id_mismatch,parent_mismatch,pre_denim,laggedalready_sealingmeans the deadline fetched the payload first.reth_base_builder_payload_ready_hints_sent_totalresult:delivered,no_receiverDifferences from #6557
This was not a clean cherry-pick.
releases/v1.5.5is 579 commits behindmain, and four things the original relies on do not exist here:NativePayloadServiceBuilderis not on this branch; the sequencer runsMultiplexingServiceBuilder. The notification channel is wired through that instead. Only the basic (native) builder sends notifications, so they flow in cutover and basic-only modes and never for Flashblocks builds.LaunchedBaseNodegains onlypayload_ready. The consensus layer still reaches the engine over IPC.RollupConfig::is_denim_activein place of the feature API onmain.The sequencer actor change and its unit tests are otherwise the same as #6557. Both integration tests are ported to the multiplexed builder and the IPC engine. The
in_memory_engine.rscases from #6557 are dropped because that test file does not exist on this branch.Testing
On this branch, at c2b8f78:
cargo +nightly fmt --all --check,cargo clippy --all-features --all-targets -- -D warningson the six packages with code changes since the first push,etc/scripts/ci/check-crate-deps.sh, and the docs-index check.base-consensus-node,base-execution-payload-builder, andbase-node-runnerwith--all-features: 577 passed. This includes the 244 sequencer actor tests, with the early-seal and metrics cases.crates/builder/multiplex/tests/payload_ready.rs: 3 passed. A Denim build signals once and a later transaction waits for the next block; replay and pre-Denim builds do not signal.etc/systems/tests/early_broadcast.rs: 2 passed. With the notification a searcher's reaction lands in B+1; with the seal deadline alone it lands in B+2. Before the metrics commits it also passed 24 of 24 runs with eight copies running at once; that was not repeated.base-builder-multiplexwith--all-features: 16 passed, includingin_process_smoke.Two checks failed on
releases/v1.5.5independently of this change, and both also failed on #6522 when it merged. This PR fixes both:base-builder-multiplex'sin_process_smokefailed withInvalid payload attributeson unmodifiedreleases/v1.5.5(2b7a634). It built at wall-clock time on the mainnet chain spec, where Denim activated on Nov 5, without the BaseTime deposit Denim requires. This PR cherry-picks test(builder): stop deriving multiplex smoke timestamps from wall clock #6455, the fix frommain, which changes only that test file.docs/transaction-events/README.mdsince refactor(tx-forwarding): stop journaling TXPOOL_BUILDER_FORWARD_FAILURE (backport #6519 to v1.5.5) #6522. This PR restamps that entry along with the READMEs it edits.CI System Tests passed at 33587d6 (138 tests), including
early_broadcast. Not run: a devnet with conductor and P2P.type=routine
risk=low
impact=sev5