fix(executor): do not insert empty changesets for touched accounts (#2631)

This commit is contained in:
Roman Krasiuk
2023-05-12 20:51:07 +03:00
committed by GitHub
parent 748f90ed3c
commit 34e34177f1

View File

@@ -431,7 +431,7 @@ pub fn commit_state_changes<DB>(
Entry::Occupied(entry) => {
let entry = entry.into_mut();
if matches!(entry.account_state, AccountState::NotExisting) {
if entry.info.is_empty() {
let account = to_reth_acc(&account.info);
if !(has_state_clear_eip && account.is_empty()) {
post_state.create_account(block_number, address, account);