Skip to content

Commit

Permalink
Introduction of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagle941 committed Sep 30, 2024
1 parent e8ff69c commit 83f3f1a
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 52 deletions.
139 changes: 139 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions starknet-replay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ primitive-types = "0.12.2"
anyhow.workspace = true
tracing.workspace = true
itertools.workspace = true
moka = { version = "0.12.8", features = ["sync", "future"] }

[dev-dependencies]
indoc = "2.0.5"
Expand Down
2 changes: 1 addition & 1 deletion starknet-replay/src/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ where
|(storage, trace_out, sender), block| -> anyhow::Result<()> {
let block_transaction_traces = storage.execute_block(block, trace_out)?;
let block_number = BlockNumber::new(block.header.block_number.0);
info!("Simulation completed block {block_number}");
info!("Replay completed block {block_number}");
let visited_pcs = process_transaction_traces(block_transaction_traces);
sender.send(visited_pcs)?;
Ok(())
Expand Down
Loading

0 comments on commit 83f3f1a

Please sign in to comment.