Skip to content

feat(zone): skip txpool during L1 catch-up#581

Open
betterclever wants to merge 5 commits into
tempoxyz:mainfrom
betterclever:betterclever/zones-no-tx-pool-catchup
Open

feat(zone): skip txpool during L1 catch-up#581
betterclever wants to merge 5 commits into
tempoxyz:mainfrom
betterclever:betterclever/zones-no-tx-pool-catchup

Conversation

@betterclever

@betterclever betterclever commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • add a no_tx_pool payload attribute for stale L1 catch-up blocks
  • skip user txpool transactions when L1 wall-clock drift exceeds the configured threshold
  • derive drift from TempoHeader::timestamp_millis() so sub-second L1 timestamps are preserved
  • default the drift threshold to 24 seconds for Tempo L1 catch-up; set it to 0 to disable the heuristic

Fixes #214

Root Cause

During L1 backfill, zone payload building still attempted user txpool inclusion against stale L1 precompile state, so pool transactions could fail repeatedly and slow catch-up.

@betterclever betterclever force-pushed the betterclever/zones-no-tx-pool-catchup branch from dd8f582 to 0964759 Compare July 3, 2026 13:00
Comment thread crates/node/src/node.rs
type ZoneNetworkPrimitives = BasicNetworkPrimitives<TempoPrimitives, TempoTxEnvelope>;

/// Default L1 timestamp drift before catch-up blocks skip txpool transactions.
pub const DEFAULT_NO_TX_POOL_DRIFT_THRESHOLD: Duration = Duration::from_secs(24);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattsse Curious about this threshold. In the original issue the threshold is supposed to be 2 L1 block times. 24 doesn't fit that number based on current L1 block production time. Could you please explain?

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.

feat(zone): skip pool transactions during L1 catch-up (no_tx_pool)

2 participants