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

chore: fix system account issue and hertz storage patch issue on testnet #58

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions crates/bsc/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use revm_primitives::{
BlockEnv, CfgEnvWithHandlerCfg, EnvWithHandlerCfg, ResultAndState, TransactTo,
};
use std::{collections::HashMap, num::NonZeroUsize, sync::Arc, time::Instant};
use tracing::log::debug;
use tracing::debug;

const SNAP_CACHE_NUM: usize = 2048;

Expand Down Expand Up @@ -188,8 +188,8 @@ where
.into());
}

self.patch_mainnet(&block.header, transaction, evm.db_mut());
self.patch_chapel(&block.header, transaction, evm.db_mut());
self.patch_mainnet_before_tx(transaction, evm.db_mut());
self.patch_chapel_before_tx(transaction, evm.db_mut());

EvmConfig::fill_tx_env(evm.tx_mut(), transaction, *sender);

Expand All @@ -204,6 +204,9 @@ where

evm.db_mut().commit(state);

self.patch_mainnet_after_tx(transaction, evm.db_mut());
self.patch_chapel_after_tx(transaction, evm.db_mut());

// append gas used
cumulative_gas_used += result.gas_used();

Expand Down
Loading