Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix waitToPostIfNeeded to regularly check if the target block number is reached #712

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

ganeshvanahalli
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli commented Dec 5, 2024

Previously, waitToPostIfNeeded function had a bug where it didn't really wait till the MinAssertionPeriodBlocks is reached since the parent assertion was created. This PR fixes that bug and modifies the implementation to regularly check if the target block number is reached instead of assuming that the average block time is perfect and waiting for that many block-times.

Corresponding nitro PR- OffchainLabs/nitro#2818
Resolves NIT-2960

@rauljordan rauljordan merged commit 0e7762c into main Dec 6, 2024
5 checks passed
@rauljordan rauljordan deleted the fix-waitToPostIfNeeded branch December 6, 2024 20:11
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