Skip to content

Commit

Permalink
Make hash a string so it serializes as a base58 string and not bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Jun 17, 2024
1 parent a99cd89 commit 089c5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ fn main() {
if print_bank_hash {
let slot_bank_hash = SlotBankHash {
slot: working_bank.slot(),
hash: working_bank.hash(),
hash: working_bank.hash().to_string(),
};
println!("{}", output_format.formatted_string(&slot_bank_hash));
}
Expand Down
2 changes: 1 addition & 1 deletion ledger-tool/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Display for SlotBounds<'_> {
#[serde(rename_all = "camelCase")]
pub struct SlotBankHash {
pub slot: Slot,
pub hash: Hash,
pub hash: String,
}

impl VerboseDisplay for SlotBankHash {}
Expand Down

0 comments on commit 089c5c5

Please sign in to comment.