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

Bugfix: bank-hash optionally takes halt_at_slot #29865

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

apfitzge
Copy link
Contributor

Problem

bank-hash subcommand sets halt_at_slot to 0 which goes against the meaning of halt_at_slot, as well as not doing what the description of bank-hash does: "Prints the hash of the working bank after reading the ledger".

Summary of Changes

Don't set halt_at_slot for bank-hash subcommand.

Fixes #29799

@steviez
Copy link
Contributor

steviez commented Jan 24, 2023

What do you think about wiring up --halt-at-slot for this subcommand, and defaulting to None if unspecified like some of the other subcommands do?

@apfitzge apfitzge force-pushed the bugfix/ledger_tool-bank_hash branch from 0f80668 to 169d592 Compare January 24, 2023 17:59
@apfitzge apfitzge changed the title Bugfix: bank-hash does not set halt_at_slot Bugfix: bank-hash optionally takes halt_at_slot Jan 24, 2023
@apfitzge
Copy link
Contributor Author

What do you think about wiring up --halt-at-slot for this subcommand, and defaulting to None if unspecified like some of the other subcommands do?

Haha you read my mind right after I pushed this. I did just that, and similarly for the shred-version subcommand in #29870

Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@apfitzge apfitzge marked this pull request as ready for review January 24, 2023 20:39
@apfitzge apfitzge merged commit 624f3d2 into solana-labs:master Jan 24, 2023
@apfitzge apfitzge deleted the bugfix/ledger_tool-bank_hash branch January 24, 2023 22:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

solana-ledger-tool errors with Unable to load bank forks at slot 0 due to disconnected blocks.
2 participants