Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
bank-hash optionally takes halt_at_slot
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jan 24, 2023
1 parent cac52b0 commit 169d592
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1737,6 +1737,7 @@ fn main() {
SubCommand::with_name("bank-hash")
.about("Prints the hash of the working bank after reading the ledger")
.arg(&max_genesis_archive_unpacked_size_arg)
.arg(&halt_at_slot_arg)
)
.subcommand(
SubCommand::with_name("bounds")
Expand Down Expand Up @@ -2473,7 +2474,7 @@ fn main() {
("bank-hash", Some(arg_matches)) => {
let process_options = ProcessOptions {
new_hard_forks: hardforks_of(arg_matches, "hard_forks"),
halt_at_slot: Some(0),
halt_at_slot: value_t!(arg_matches, "halt_at_slot", Slot).ok(),
poh_verify: false,
..ProcessOptions::default()
};
Expand Down

0 comments on commit 169d592

Please sign in to comment.