From 22c9ac76aa32b9f300ef92a739da86918f765dfd Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Fri, 10 Aug 2018 18:40:18 +0200 Subject: [PATCH] format offline validators in ss58 --- polkadot/consensus/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/polkadot/consensus/src/lib.rs b/polkadot/consensus/src/lib.rs index 2d9639a8cd..d4edf8c895 100644 --- a/polkadot/consensus/src/lib.rs +++ b/polkadot/consensus/src/lib.rs @@ -615,19 +615,21 @@ impl bft::Proposer for Proposer self.primary_index(round_number, self.validators.len()) ]; + // alter the message based on whether we think the empty proposer was forced to skip the round. // this is determined by checking if our local validator would have been forced to skip the round. let consider_online = was_proposed || { let forced_delay = self.dynamic_inclusion.acceptable_in(Instant::now(), self.table.includable_count()); + let public = ::ed25519::Public::from_raw(primary_validator.0); match forced_delay { None => info!( - "Potential Offline Validator: {:?} failed to propose during assigned slot: {}", - primary_validator, + "Potential Offline Validator: {} failed to propose during assigned slot: {}", + public, round_number, ), Some(_) => info!( - "Potential Offline Validator {:?} potentially forced to skip assigned slot: {}", - primary_validator, + "Potential Offline Validator {} potentially forced to skip assigned slot: {}", + public, round_number, ), }