Skip to content

Commit

Permalink
Print capitalization message at end
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Feb 13, 2024
1 parent a59aa36 commit bd1216f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ fn main() {

let post_capitalization = bank.capitalization();

if pre_capitalization != post_capitalization {
let capitalization_message = if pre_capitalization != post_capitalization {
let amount = if pre_capitalization > post_capitalization {
format!("-{}", pre_capitalization - post_capitalization)
} else {
Expand All @@ -2076,7 +2076,10 @@ fn main() {
);
exit(1);
}
}
Some(msg)
} else {
None
};

let bank = if let Some(warp_slot) = warp_slot {
// need to flush the write cache in order to use Storages to calculate
Expand Down Expand Up @@ -2204,6 +2207,9 @@ fn main() {
}
}

if let Some(msg) = capitalization_message {
println!("{msg}");
}
println!(
"Shred version: {}",
compute_shred_version(&genesis_config.hash(), Some(&bank.hard_forks()))
Expand Down

0 comments on commit bd1216f

Please sign in to comment.