Skip to content

Commit

Permalink
chore(blockifier_reexecution): small description fixes (starkware-lib…
Browse files Browse the repository at this point in the history
  • Loading branch information
aner-starkware authored Jan 14, 2025
1 parent 82b1537 commit dc003d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/blockifier_reexecution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ cargo run --bin blockifier_reexecution write-to-file -n <node_url> -d <directory
```

- **Offline Reexecution:**
Reexecution test where the data required for reexecuting the block, as well as the expected resulting state diff, are read from local JSON files. Offline reexecution should be run in release mode, as otherwise these tests can be very long. To run offline reexecution on blocks in the GC bucket, download the files as explained below.
Reexecution test where the data required for reexecuting the block, as well as the expected resulting state diff, are read from local JSON files. Offline reexecution should be run in release mode, as otherwise these tests can be very long. To run offline reexecution on blocks in the GC bucket, first download the files as explained below. Then run
```
cargo run --release --bin blockifier_reexecution reexecute -n <node_url> -d <directory_path> -b <optional_block_number_1> ... <optional_block_number_n>
cargo run --release --bin blockifier_reexecution reexecute -d <directory_path> -b <optional_block_number_1> ... <optional_block_number_n>
```

### Downloading Offline Reexecution Files from the GC Bucket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::state_reader::utils::{get_block_numbers_for_reexecution, reexecute_bl
#[case::example_l1_handler(868429)]
#[ignore = "Requires downloading JSON files prior to running; Long test, run with --release flag."]
fn test_block_reexecution(#[case] block_number: u64) {
// Assert that the block number exists in the json file.
assert!(
get_block_numbers_for_reexecution(Some("../../".to_owned()))
.contains(&BlockNumber(block_number))
Expand Down

0 comments on commit dc003d1

Please sign in to comment.