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 data poster nonce query #1682

Merged
merged 4 commits into from
Jun 7, 2023
Merged

Fix data poster nonce query #1682

merged 4 commits into from
Jun 7, 2023

Conversation

PlasmaPower
Copy link
Collaborator

@PlasmaPower PlasmaPower commented Jun 7, 2023

The NonceAt query was originally written assuming that p.lastBlock had already been updated: https://github.com/OffchainLabs/nitro/blob/v2.0.14/arbnode/dataposter/data_poster.go#L382

Now though, it's only updated at the end of the function, so we should use header.Number instead.

This PR also makes a change to not prune the most recent transaction from redis, which means that the data poster should always be able to figure out its current state from redis and not have to rely on the L1.

@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 Jun 7, 2023
Copy link
Contributor

@magicxyyz magicxyyz 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 PlasmaPower merged commit f43eb69 into master Jun 7, 2023
8 checks passed
@PlasmaPower PlasmaPower deleted the data-poster-nonce branch June 7, 2023 19:59
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.

None yet

2 participants