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: unordered merge mode flag #202

Merged
merged 12 commits into from
Oct 22, 2024

Conversation

welkin22
Copy link
Contributor

Description

Add an unordered merge mode and include a flag to enable it.

Rationale

In the confirm phase of PEVM, we fully trust the txDAG. The advantage of this is that we can skip conflict checks and immediately merge the execution results into the statedb after executing transactions at each txlevel. This will achieve better performance.

Example

--parallel.unordered-merge

Changes

Notable changes:

  • Added the parallel.unordered-merge flag
  • Add some metrics

@welkin22 welkin22 requested review from sunny2022da and andyzhang2023 and removed request for owen-reorg and bnoieh October 21, 2024 08:37
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

}
//if err := pst.conflictsToMaindb(); err != nil {
// return err
//}
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can keep this uncommented, and make separate PR later for this when it is confirmed to be OK

@sunny2022da sunny2022da merged commit 4db9987 into bnb-chain:feature/TxDAG-PEVM Oct 22, 2024
1 check failed
welkin22 added a commit that referenced this pull request Oct 22, 2024
sunny2022da pushed a commit to sunny2022da/op-geth that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants