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

Host: notify separately for new heads and new validated heads #1904

Merged
merged 1 commit into from
May 9, 2024

Conversation

BedrockSquirrel
Copy link
Collaborator

Why this change is needed

We have bugs that are likely caused by the host newHeads subscriptions getting notified of new batches before the enclave has processed them.

What changes were made as part of this PR

Separate out the L2 repo's subscribers between those that want to know about a new head added to the DB and a new head batch that has been validated by that node's own enclave. Use the latter for the new heads RPC subscriptions.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@BedrockSquirrel BedrockSquirrel force-pushed the matt/new-heads-after-enclave-process branch from ccd026b to aaf2074 Compare May 9, 2024 11:19
Copy link
Collaborator

@tudor-malene tudor-malene left a comment

Choose a reason for hiding this comment

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

lgtm

@BedrockSquirrel BedrockSquirrel merged commit 52579fe into main May 9, 2024
2 checks passed
@BedrockSquirrel BedrockSquirrel deleted the matt/new-heads-after-enclave-process branch May 9, 2024 11:42
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