Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Jul 11, 2024
1 parent 62fd2c1 commit ec2156a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions replay/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,13 @@ fn fetch_block_context(
/// Can also be used to fill up the cache
pub fn execute_block_range(block_range_data: &mut Vec<BlockCachedData>) {
for (state, block_context, transactions) in block_range_data {
// For each block

// The transactional state is used to execute a transaction while discarding state changes applied to it.
let mut transactional_state = CachedState::create_transactional(state);

for (transaction_hash, transaction) in transactions {
// Execute each transaction
let result = execute_tx_with_blockifier(
&mut transactional_state,
block_context.clone(),
Expand Down

0 comments on commit ec2156a

Please sign in to comment.