Skip to content

Commit

Permalink
test7
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 3, 2024
1 parent 655a603 commit 0056ed9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion crates/bsc/evm/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,16 @@ where
error: err.into(),
}
})?;
if block.number == 35547819 {
if block.number == 35547819 &&
transaction.hash() ==
b256!("5ebef67c81a8b0121c081056f10c17a3943eb59f74f53e2c54dc939d0bb06f55")
{
debug!("tx state: {:?}", state);
}
if block.number == 35547779 &&
transaction.hash() ==
b256!("7ce9a3cf77108fcc85c1e84e88e363e3335eca515dfcf2feb2011729878b13a7")
{
debug!("tx state: {:?}", state);
}
evm.db_mut().commit(state);
Expand Down
2 changes: 1 addition & 1 deletion crates/bsc/evm/src/patch_hertz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ fn apply_patch<DB>(
DB: Database<Error = ProviderError>,
{
for (block_hash, tx_hash, address, patch) in patches {
if header.hash_slow() == block_hash && transaction.recalculate_hash() == tx_hash {
if header.hash_slow() == block_hash && transaction.hash() == tx_hash {
trace!("patch evm state at block {:?} tx {:?}", block_hash, tx_hash);

let account = state.load_cache_account(address).unwrap().clone();
Expand Down

0 comments on commit 0056ed9

Please sign in to comment.