Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
9fb34049
Commit
9fb34049
authored
Aug 10, 2018
by
asynchronous rob
Browse files
format offline validators in ss58
parent
d88cb4ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
consensus/src/lib.rs
View file @
9fb34049
...
...
@@ -615,19 +615,21 @@ impl<C> bft::Proposer<Block> for Proposer<C>
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: {}"
,
p
rimary_validator
,
"Potential Offline Validator: {} failed to propose during assigned slot: {}"
,
p
ublic
,
round_number
,
),
Some
(
_
)
=>
info!
(
"Potential Offline Validator {
:?
} potentially forced to skip assigned slot: {}"
,
p
rimary_validator
,
"Potential Offline Validator {} potentially forced to skip assigned slot: {}"
,
p
ublic
,
round_number
,
),
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment