Skip to content

Commit 2e9cb61

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

silkworm/core/execution/evm.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ 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) {
85+
if (!bailout) {
8786
state.subtract_from_balance(sender, amount);
8887
}
8988
state.add_to_balance(recipient, amount);

0 commit comments

Comments
 (0)