diff --git a/wen-restart/src/heaviest_fork_aggregate.rs b/wen-restart/src/heaviest_fork_aggregate.rs index 710a6010292daf..0d62824a247963 100644 --- a/wen-restart/src/heaviest_fork_aggregate.rs +++ b/wen-restart/src/heaviest_fork_aggregate.rs @@ -162,8 +162,15 @@ impl HeaviestForkAggregate { } pub(crate) fn print_block_stake_map(&self) { + let total_stake = self.epoch_stakes.total_stake(); for ((slot, hash), stake) in self.block_stake_map.iter() { - info!("Slot: {}, Hash: {}, Stake: {}", slot, hash, stake,); + info!( + "Heaviest Fork Aggregated Slot: {}, Hash: {}, Stake: {}, Percent: {:.2}%", + slot, + hash, + stake, + *stake as f64 / total_stake as f64 * 100.0, + ); } } } diff --git a/wen-restart/src/wen_restart.rs b/wen-restart/src/wen_restart.rs index 9296ba8e82bd42..c643e1b62e240e 100644 --- a/wen-restart/src/wen_restart.rs +++ b/wen-restart/src/wen_restart.rs @@ -747,10 +747,12 @@ pub(crate) fn aggregate_restart_heaviest_fork( .unwrap() .total_active_stake = current_total_active_stake; } + let total_active_stake = heaviest_fork_aggregate.total_active_stake(); info!( - "Total active stake: {} Total stake {}", - heaviest_fork_aggregate.total_active_stake(), - total_stake + "Total active stake: {} Total stake {} Active percent: {:.2}%", + total_active_stake, + total_stake, + total_active_stake as f64 / total_stake as f64 * 100.0, ); write_wen_restart_records(wen_restart_path, progress)?; let elapsed = timestamp().saturating_sub(start);