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

Submit L1 Block: fix lock bug #1558

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

BedrockSquirrel
Copy link
Collaborator

Why this change is needed

At some stage I moved receipt fetch to only fire when we were not busy submitting to the enclave, to avoid unnecessary L1 data requests.

This introduced a bug because if the receipt fetch failed I forgot to release the lock.

The symptom of the bug is the logs spamming: Unable to submit block, already submitting another block repeatedly.

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

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.

oops. missing good ol' "finally"
lgtm.

@BedrockSquirrel BedrockSquirrel merged commit 8096ae0 into main Sep 27, 2023
@BedrockSquirrel BedrockSquirrel deleted the matt/fix-batch-submit-lock-bug branch September 27, 2023 10:06
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