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

Have l2 blocks unblock preconf when there are gaps #132

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

Arkenan
Copy link
Collaborator

@Arkenan Arkenan commented Feb 24, 2025

No description provided.

@Arkenan Arkenan marked this pull request as ready for review February 24, 2025 17:55
@@ -148,6 +153,16 @@ func (s *PreconfState) putSeal(sSeal *eth.SignedSeal) {
}
}

// Checks if there's envs blocked because of gaps and sends them over.
func (s *PreconfState) putL2Block(block *eth.L2BlockRef) {
s.sentL2Blocks[block.Number] = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't this always-growing hashmap be a problem after some time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the same with all the rest. I'll add pruning for all in a separate thread.

@ilitteri ilitteri merged commit 9751d64 into main Feb 25, 2025
1 check passed
@ilitteri ilitteri deleted the preconf-gaps-saved-by-l2-blocks branch February 25, 2025 10:39
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.

3 participants