Skip to content

Commit 9d65d27

Browse files
committed
hbbft peers handler: do not announce availability if the chain is syncing.
1 parent 653b480 commit 9d65d27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/ethcore/src/engines/hbbft/hbbft_peers_handler.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ impl HbbftPeersHandler {
8181
.as_full_client()
8282
.ok_or("BlockchainClient required")?;
8383

84+
85+
if block_chain_client.is_major_syncing() {
86+
return Ok(());
87+
}
88+
8489
match get_validator_available_since(engine_client.as_ref(), &mining_address) {
8590
Ok(s) => {
8691
if s.is_zero() {

0 commit comments

Comments
 (0)