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

Bugfix: bank-hash optionally takes halt_at_slot #29865

Merged
merged 1 commit into from
Jan 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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