-
Notifications
You must be signed in to change notification settings - Fork 556
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(op): Base Goerli op-reth
sync patches
#824
Conversation
fb0a825
to
e96862c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes lgtm, pending @rakita
self.preverify_transaction() | ||
.and_then(|()| self.transact_preverified()) | ||
} | ||
fn transact(&mut self) -> EVMResult<DBError>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should stay as this and logic should be changes for used function.
crates/revm/src/evm_impl.rs
Outdated
{ | ||
crate::handler::optimism::default_transact(self) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not go here, but inside transact_preverified
logic will be skipped otherwise.
@clabby if you are okay with it, to speed things up i can create the PR on this branch |
refactor optimism: main_return
Co-authored-by: rakita <rakita@users.noreply.github.com>
chore: Introduce end handle
failed test unrelated to PR |
Overview
Contains several fixes for the Optimism state transition code.
Context
After hooking up the OP execution changes to
op-reth
and performing a sync test on the Base Goerli network, a few bugs were found.Patches
mint
value should be persisted to the sender account's balance to prevent loss of funds, and the sender's nonce should be bumped as well.transact
function in theTransact
trait, and define a catch-all failure handler that persists themint
value to and bumps the nonce of the caller account before returning a specialHalt
variant.Halt
s, a few special rules apply. These happen to be identical to the logic in the above catch-all.Halt::FailedDeposit
status.Reference Branch (cherry-picked #781 onto
3.5.0
for integrating w/op-reth
: https://github.com/anton-rs/op-revm/tree/cl/patch-op)