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: using snapshot instead of state copy #61

Merged
merged 3 commits into from
Dec 26, 2024
Merged

fix: using snapshot instead of state copy #61

merged 3 commits into from
Dec 26, 2024

Conversation

irrun
Copy link
Collaborator

@irrun irrun commented Dec 24, 2024

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@irrun irrun marked this pull request as ready for review December 24, 2024 08:52
@@ -451,9 +454,10 @@ func (w *worker) simulateBundle(
// for unRevertible tx but itself can be dropped, we drop it and revert the state and gas pool
if containsHash(bundle.DroppingTxHashes, receipt.TxHash) {
log.Warn("drop tx in bundle", "hash", receipt.TxHash.String())
state = prevState
gasPool = prevGasPool
// do not need to revert the state and gas pool for they are already reverted in ApplyTransaction

Choose a reason for hiding this comment

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

"// do not need to revert the state and gas pool for they are already reverted in ApplyTransaction" I did not find that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@irrun irrun merged commit 462129f into develop Dec 26, 2024
4 of 6 checks passed
@irrun irrun deleted the fix-dropping branch December 26, 2024 02:50
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