Skip to content

Commit

Permalink
Merge pull request #560 from ethereum/warm_coinbase
Browse files Browse the repository at this point in the history
state: Implement EIP-3651: Warm COINBASE
  • Loading branch information
axic authored Feb 13, 2023
2 parents 791b42b + fe540d3 commit 676027e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/state/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ std::variant<TransactionReceipt, std::error_code> transition(
for (const auto& key : storage_keys)
storage[key].access_status = EVMC_ACCESS_WARM;
}
// EIP-3651: Warm COINBASE.
// This may create an empty coinbase account. The account cannot be created unconditionally
// because this breaks old revisions.
if (rev >= EVMC_SHANGHAI)
host.access_account(block.coinbase);

const auto result = host.call(build_message(tx, execution_gas_limit));

Expand Down

0 comments on commit 676027e

Please sign in to comment.