Skip to content

refactor(tx-forwarding): stop journaling TXPOOL_BUILDER_FORWARD_FAILURE (backport #6519 to v1.5.5) - #6522

Merged
fahimahmedx merged 1 commit into
releases/v1.5.5from
fahim/backport-6519-v1.5.5
Nov 9, 2026
Merged

fahimahmedx merged 1 commit into
releases/v1.5.5from
fahim/backport-6519-v1.5.5

Conversation

@fahimahmedx

Copy link
Copy Markdown
Contributor

Summary

Backport of #6519 to releases/v1.5.5 (clean cherry-pick of 34c165f, no conflicts). Part of CHAIN-6721.

Stops emitting TXPOOL_BUILDER_FORWARD_FAILURE from mempool nodes and retires the event type. The receiving builder already journals the same pool rejection as TXPOOL_VALIDATED_INSERT_REJECTED while it is the active sequencer, so every node-side row was a duplicate of the leader's verdict or a standby/canary verdict that never decides inclusion. On mainnet this was 20.2M rows/hour (17.6% of all transaction events), 88% from the two canary sequencers.

Forwarding, retries, failure reports to the reader, the per-builder rejection metric, and the TXPOOL_BUILDER_FORWARD_ATTEMPT / _DROPPED events are unchanged. The enum variant stays so historical rows parse.

Testing

On this branch: cargo +nightly fmt --check, cargo clippy -p base-tx-forwarding -p base-observability-events --all-targets -- -D warnings, cargo test -p base-tx-forwarding -p base-observability-events (52 + 8 + 4 + 28 passed). The devnet integration test asserts a rejected transaction's journal is exactly TXPOOL_SEND_RAW_TRANSACTION, TXPOOL_PENDING, TXPOOL_VALIDATED_INSERT_REJECTED.

type=routine
risk=low
impact=sev5

A mempool node forwards every transaction to every configured builder, and
each builder that rejected it made the node journal a forward failure. The
receiving builder already journals the same rejection as
TXPOOL_VALIDATED_INSERT_REJECTED while it is the active sequencer, so the
node-side row either duplicated the leader's verdict or recorded a standby or
canary verdict that never decides inclusion. On mainnet (2026-11-08 09:00 UTC)
these were 20.2M rows/hour, 17.6% of all transaction events, 88% of them from
the two canary sequencers.

Drop the emit and retire the event type; historical rows stay readable.
Forwarding, failure reports to the reader, and the per-builder rejection
metric are unchanged. TXPOOL_BUILDER_FORWARD_ATTEMPT and _DROPPED stay, since
a send that never reaches a builder has no builder-side record.

CHAIN-6721

(cherry picked from commit 34c165f)
@depot-code-access

depot-code-access Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ All benchmarks green — 14 within ±2% (deterministic instruction counts). View run

Benchmark details (14)
Benchmark Base (target) Head (this PR) Δ instructions
batch_queue/drain/drain_cached_span_batches 242,027 242,027 +0.0%
batch_transaction/encode_in_place/encode_in_place 4,199,759 4,199,759 +0.0%
batch_transaction/temporary_frame_buffers/temporary_frame_buffers 8,408,350 8,408,350 +0.0%
flashblock_decode/decode/brotli 3,296,484 3,296,484 +0.0%
flashblock_decode/decode/plain_json 2,280,194 2,280,194 +0.0%
flz/compress_len/real_contract_call 43,148 43,148 +0.0%
flz/compress_len/synthetic_0 38,205 38,205 +0.0%
flz/compress_len/synthetic_1 54,682 54,682 +0.0%
flz/compress_len/synthetic_2 147,976 147,976 +0.0%
flz/data_gas 43,059 43,059 +0.0%
flz/tx_estimated_size 43,056 43,056 +0.0%
frame_parse/decode/single_4kib 1,031 1,031 +0.0%
frame_parse/parse_frames/few_large 1,053,062 1,053,062 +0.0%
frame_parse/parse_frames/many_small 154,763 154,763 +0.0%

@fahimahmedx
fahimahmedx merged commit 2b7a634 into releases/v1.5.5 Nov 9, 2026
28 of 31 checks passed
@fahimahmedx
fahimahmedx deleted the fahim/backport-6519-v1.5.5 branch November 9, 2026 22:04
@depot-code-access

Copy link
Copy Markdown

Acceptance Tests: ✅ Passed

3/3 checks passed · Checks & reports

Acceptance report
  • smoke / chain-identity — passed: chain identity matched
    • Expected: 84538453
    • Observed: 84538453
  • smoke / production — passed: head advanced
    • Expected: {"minimum_blocks":3}
    • Observed: {"delta":3,"from":5,"last":8,"required_delta":3}
  • smoke / validator-converges — passed: heads converged on a common canonical block
    • Expected: {"common_height_hash":true,"max_lag_blocks":5}
    • Observed: {"common_height":8,"hash":"0x7653549d433e30efb988bae752d3c2a9880ee715010d9dc68e680e61e61e6543","high":8,"lag":0,"low":8,"low_timestamp":1794261954,"maximum_lag":5,"minimum_timestamp":0}

haardikk21 added a commit that referenced this pull request Nov 11, 2026
The entry has been stale on releases/v1.5.5 since #6522 changed the doc;
its summary is still accurate. Fixes the Metadata Checks docs-index step.

Co-authored-by: Toshi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants