We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe06c59 commit d54d3ebCopy full SHA for d54d3eb
crates/executor/src/execution_state.rs
@@ -37,7 +37,8 @@ impl<'tx> ExecutionState<'tx> {
37
);
38
let mut cached_state = LruCachedReader::new_cached_state(raw_reader)?;
39
40
- // if we're running on parent state we have to set the block hash for block_number - 10 in the state
+ // 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.
42
if self.execute_on_parent_state && self.header.number.get() >= 10 {
43
let block_number_whose_hash_becomes_available =
44
pathfinder_common::BlockNumber::new_or_panic(self.header.number.get() - 10);
0 commit comments