Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Oct 1, 2024
1 parent 739feaf commit f3f511a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ RUST_LOG=replay=error cargo run block mainnet 648461
### Comparing with VM

To compare Native execution with the VM, you can use the `state_dump` feature. It will save to disk the execution info and state diff of every contract executed.
- If executing Native, the dumps will be saved at: `state_dumps/native/{tx_hash}.json`
- If paired with `only_cairo_vm` feature, the dumps will be saved at: `state_dumps/vm/{tx_hash}.json`
- If executing Native, the dumps will be saved at: `state_dumps/native/block{block_number}/{tx_hash}.json`
- If paired with `only_cairo_vm` feature, the dumps will be saved at: `state_dumps/vm/block{block_number}/{tx_hash}.json`

To compare the outputs, you can use the following scripts. Some of them required `delta` (modern diff).
- `cmp_state_dumps.sh`. Prints which transactions match with the VM and which differ. It moves matching transaction to another directory `good_state_dump`.
- `cmp_state_dumps.sh`. Prints which transactions match with the VM and which differ.
```bash
> ./scripts/cmp_state_dumps.sh
diff: 0x636326f93a16be14b36b7e62c546370d81d285d1f5398e13d5348fa03a00d05.json
Expand Down

0 comments on commit f3f511a

Please sign in to comment.