Skip to content

Commit d54d3eb

Browse files
Update crates/executor/src/execution_state.rs
Co-authored-by: Mirko von Leipzig <48352201+Mirko-von-Leipzig@users.noreply.github.com>
1 parent fe06c59 commit d54d3eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/executor/src/execution_state.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ impl<'tx> ExecutionState<'tx> {
3737
);
3838
let mut cached_state = LruCachedReader::new_cached_state(raw_reader)?;
3939

40-
// if we're running on parent state we have to set the block hash for block_number - 10 in the state
40+
// Perform system contract updates if we are executing ontop of a parent block.
41+
// Currently this is only the block hash from 10 blocks ago.
4142
if self.execute_on_parent_state && self.header.number.get() >= 10 {
4243
let block_number_whose_hash_becomes_available =
4344
pathfinder_common::BlockNumber::new_or_panic(self.header.number.get() - 10);

0 commit comments

Comments
 (0)