Skip to content

Commit afea4b2

Browse files
committed
disable bailout in standard transfer
1 parent c9e32d1 commit afea4b2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

silkworm/core/execution/evm.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ using TransferFunc = void(IntraBlockState& state, const evmc::address& sender, c
8282
// See consensus.Transfer in Erigon
8383
inline void standard_transfer(IntraBlockState& state, const evmc::address& sender, const evmc::address& recipient,
8484
const intx::uint256& amount, bool bailout) {
85-
// TODO(yperbasis) why is the bailout condition different from Erigon?
86-
if (!bailout || state.get_balance(sender) >= amount) {
87-
state.subtract_from_balance(sender, amount);
88-
}
85+
(void)bailout;
86+
state.subtract_from_balance(sender, amount);
8987
state.add_to_balance(recipient, amount);
9088
}
9189

0 commit comments

Comments
 (0)