Skip to content
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

EVMHost: Support warm coinbase #14126

Merged
merged 1 commit into from
Apr 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/EVMHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,19 @@ evmc::Result EVMHost::call(evmc_message const& _message) noexcept
transfer(sender, destination, value);
}

// Populate the access access list.
// Populate the access access list (enabled since Berlin).
// Note, this will also properly touch the created address.
// TODO: support a user supplied access list too
if (m_evmRevision >= EVMC_BERLIN)
{
access_account(message.sender);
access_account(message.recipient);

// EIP-3651 rule
if (m_evmRevision >= EVMC_SHANGHAI)
access_account(tx_context.block_coinbase);
}

evmc::Result result = m_vm.execute(*this, m_evmRevision, message, code.data(), code.size());

if (message.kind == EVMC_CREATE || message.kind == EVMC_CREATE2)
Expand Down