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

pevm: fix the blockNumber used by txDAGReader during initialization #214

Conversation

welkin22
Copy link
Contributor

@welkin22 welkin22 commented Nov 1, 2024

Description

Use bc.CurrentBlock() instead of bc.CurrentHeader() when initializing txDAGReader.

Rationale

When a block rollback occurs, using bc.CurrentBlock() is the way to get the correct starting block height.

Example

none

Copy link
Collaborator

@sunny2022da sunny2022da left a comment

Choose a reason for hiding this comment

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

LGTM

@welkin22 welkin22 merged commit af1fae5 into bnb-chain:feature/TxDAG-PEVM Nov 1, 2024
1 of 2 checks passed
bnoieh pushed a commit to bnoieh/op-geth that referenced this pull request Nov 29, 2024
…yload-envelope

Extend execution payload envelope to contain parent beacon block root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants