You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/advanced/cost-estimation-tools.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,19 @@ cargo run --bin cost-estimator -- \
46
46
47
47
For best estimation, use a range bigger than the batcher interval with batch size equal to the range.
48
48
49
+
To run against a historical range without depending on op-node SafeDB, pass both `--no-safe-head-split` and an explicit `--l1-head`:
50
+
51
+
```bash
52
+
cargo run --bin cost-estimator -- \
53
+
--start 2000000 \
54
+
--end 2001800 \
55
+
--batch-size 300 \
56
+
--no-safe-head-split \
57
+
--l1-head <L1_HEAD_BLOCK_HASH>
58
+
```
59
+
60
+
`--no-safe-head-split` uses fixed-size batches instead of SafeDB-aligned safe head boundaries. `--l1-head` uses the supplied L1 head hash instead of looking it up through SafeDB, and ignores `L1_BLOCK_TAG` / `L1_CONFIRMATIONS` for the estimator run.
61
+
49
62
### Output
50
63
51
64
Execution report saved to `execution-reports/{chain_id}/{start}-{end}-report.csv` with metrics:
0 commit comments