Skip to content

Commit

Permalink
chore: fix system account issue and hertz storage patch issue on testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 8, 2024
1 parent 00259fa commit 9a9e79c
Show file tree
Hide file tree
Showing 5 changed files with 585 additions and 438 deletions.
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(&block.header, transaction, evm.db_mut());
self.patch_chapel_before_tx(&block.header, 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(&block.header, transaction, evm.db_mut());
self.patch_chapel_after_tx(&block.header, transaction, evm.db_mut());

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

Expand Down
Loading

0 comments on commit 9a9e79c

Please sign in to comment.