Skip to content

Commit

Permalink
disable bailout in standard transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Feb 4, 2025
1 parent c9e32d1 commit afea4b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions silkworm/core/execution/evm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ using TransferFunc = void(IntraBlockState& state, const evmc::address& sender, c
// See consensus.Transfer in Erigon
inline void standard_transfer(IntraBlockState& state, const evmc::address& sender, const evmc::address& recipient,
const intx::uint256& amount, bool bailout) {
// TODO(yperbasis) why is the bailout condition different from Erigon?
if (!bailout || state.get_balance(sender) >= amount) {
state.subtract_from_balance(sender, amount);
}
(void)bailout;
state.subtract_from_balance(sender, amount);
state.add_to_balance(recipient, amount);
}

Expand Down

0 comments on commit afea4b2

Please sign in to comment.