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 the delayed sequencer missing messages in tests #2651

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PlasmaPower
Copy link
Collaborator

Previously, the delayed sequencer might check block X before the inbox reader has read delayed messages from block X, and therefore the delayed sequencer wouldn't see any new delayed messages. Then, it'd wait for block X+1 before checking for new delayed messages again. However, in test cases, there might not be blocks produced regularly and therefore there might not be a block X+1 at all because the test is stuck waiting on the delayed message to be sequenced. Therefore, this PR regularly rechecks the delayed messages to see if it missed anything, which is very cheap because all it needs to do is compare the database's delayed message count to the database's delayed messages sequenced count.

@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 Sep 9, 2024
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.

1 participant