mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 11:11:03 +00:00
format offline validators in ss58
This commit is contained in:
@@ -615,19 +615,21 @@ impl<C> bft::Proposer<Block> for Proposer<C>
|
|||||||
self.primary_index(round_number, self.validators.len())
|
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.
|
// 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.
|
// this is determined by checking if our local validator would have been forced to skip the round.
|
||||||
let consider_online = was_proposed || {
|
let consider_online = was_proposed || {
|
||||||
let forced_delay = self.dynamic_inclusion.acceptable_in(Instant::now(), self.table.includable_count());
|
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 {
|
match forced_delay {
|
||||||
None => info!(
|
None => info!(
|
||||||
"Potential Offline Validator: {:?} failed to propose during assigned slot: {}",
|
"Potential Offline Validator: {} failed to propose during assigned slot: {}",
|
||||||
primary_validator,
|
public,
|
||||||
round_number,
|
round_number,
|
||||||
),
|
),
|
||||||
Some(_) => info!(
|
Some(_) => info!(
|
||||||
"Potential Offline Validator {:?} potentially forced to skip assigned slot: {}",
|
"Potential Offline Validator {} potentially forced to skip assigned slot: {}",
|
||||||
primary_validator,
|
public,
|
||||||
round_number,
|
round_number,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user