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

feat(revm): implement prepend_state for BundleState #907

Merged
merged 4 commits into from
Dec 16, 2023

Conversation

peyha
Copy link
Contributor

@peyha peyha commented Dec 8, 2023

For #904

// discard other reverts
other.take_n_reverts(other_len);
// swap bundles
std::mem::swap(self, &mut other)
Copy link
Member

Choose a reason for hiding this comment

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

This works, but we could be better with a small refactor. Make a fn extend_state and make fn extend calls it (it is just moving some code), and with this, you would not need to take_n_reverts and could extend only needed data.

@peyha
Copy link
Contributor Author

peyha commented Dec 8, 2023

Good catch, updated extend accordingly

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

lgtm! will merge after CI

@rakita rakita merged commit be133e6 into bluealloy:main Dec 16, 2023
22 checks passed
@github-actions github-actions bot mentioned this pull request Jan 12, 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.

None yet

2 participants