Skip to content

Conversation

MozirDmitriy
Copy link
Contributor

Correct the wait duration when a transaction is not yet “safe”. Previously, if the safe head S lagged behind the receipt block B (S < B), we computed a zero-delay wait, causing hot polling. Now we wait for (B - S) blocks times the average block time.
This change is necessary to prevent tight polling loops and to align the waiting logic with the intended semantics: only proceed once the safe head has caught up to the receipt’s block.

Copy link
Contributor

@rauljordan rauljordan left a comment

Choose a reason for hiding this comment

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

Excellent find, thank you!

@rauljordan
Copy link
Contributor

Requesting @joshuacolvin0 for design approval

@eljobe eljobe added this pull request to the merge queue Sep 23, 2025
Merged via the queue into OffchainLabs:master with commit 8cbcf80 Sep 23, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants