Skip to content

Commit

Permalink
ledger-tool: remove inefficient base58 encoding options (backport #28…
Browse files Browse the repository at this point in the history
…488) (#28494)

ledger-tool: encode account data with base64 instead of slow base58

Co-authored-by: Trent Nelson <[email protected]>
  • Loading branch information
mergify[bot] and t-nelson authored Oct 21, 2022
1 parent c090a6b commit dcf4cc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ledger-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = "https://solana.com/"
documentation = "https://docs.rs/solana-ledger-tool"

[dependencies]
bs58 = "0.4.0"
base64 = "0.13.0"
clap = "2.33.1"
crossbeam-channel = "0.5"
csv = "1.1.6"
Expand Down
2 changes: 1 addition & 1 deletion ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2679,7 +2679,7 @@ fn main() {
println!(" - slot: {}", slot);
println!(" - rent_epoch: {}", account.rent_epoch());
if print_account_data {
println!(" - data: '{}'", bs58::encode(account.data()).into_string());
println!(" - data: '{}'", base64::encode(account.data()));
}
println!(" - data_len: {}", data_len);
}
Expand Down

0 comments on commit dcf4cc6

Please sign in to comment.