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

Make the data poster nonce query resilient #1640

Merged
merged 4 commits into from
May 18, 2023
Merged

Conversation

PlasmaPower
Copy link
Collaborator

This makes the batch poster a lot more resilient to L1 node issues, particularly if the state of the latest finalized block is not available. In that case, it'll continue normal operation without pruning the queue until the finalized state is available again. On startup, it'll continue adding to the queue as usual even if the finalized state isn't available. If the queue is empty, it'll query the latest block instead, which is safe because the queue being empty means there aren't any unconfirmed transactions floating around that might change during a reorg.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label May 16, 2023
amsanghi
amsanghi previously approved these changes May 16, 2023
@PlasmaPower
Copy link
Collaborator Author

I've pushed up a fix that will error if the queue is ephemeral and we fail to get the latest finalized nonce, as we might be affected by a reorg in that case

@PlasmaPower PlasmaPower merged commit 49916a6 into master May 18, 2023
@PlasmaPower PlasmaPower deleted the resilient-nonce-query branch May 18, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants