Bugfix: bank-hash optionally takes halt_at_slot (#29865)

bank-hash optionally takes halt_at_slot
This commit is contained in:
apfitzge 2023-01-24 14:15:07 -08:00 committed by GitHub
parent 655345728b
commit 624f3d2d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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")
@ -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()
};