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

Be more precise when selecting firstMsg in the batch poster #2646

Merged
merged 6 commits into from
Oct 15, 2024

Conversation

PlasmaPower
Copy link
Collaborator

We previously used firstMsg for two things in the batch poster:

  1. Seeing how long we've been waiting to post this batch (checking MaxDelay and passed to the data poster)
  2. Checking if there'll be a reorg because the messages are too old

For (1), we don't want to include batch posting reports which we don't bother to post on their own anyways, so firstMsg has been replaced by firstUsefulMsg in these cases. For (2), we should definitely confirm this, but based on what I remember and my reading of the inbox multiplexer I don't think delayed messages can trigger a timestamp / L1 block number based reorg. The timestamp bounds are only used by non-delayed messages as far as I can tell. Therefore, we shouldn't include them when checking if posting this batch will cause 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 Sep 7, 2024
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli left a comment

Choose a reason for hiding this comment

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

LGTM

@PlasmaPower
Copy link
Collaborator Author

Fixed merge conflicts

@PlasmaPower PlasmaPower merged commit 5d74164 into master Oct 15, 2024
15 checks passed
@PlasmaPower PlasmaPower deleted the batch-poster-first-msg-selection branch October 15, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved 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.

4 participants