Skip to content
Snippets Groups Projects
Unverified Commit 2a89cc27 authored by Alexandru Gheorghe's avatar Alexandru Gheorghe Committed by GitHub
Browse files

statement-distribution: Fix false warning (#4727)


... when backing group is of size 1.

Signed-off-by: default avatarAlexandru Gheorghe <alexandru.gheorghe@parity.io>
parent 426956f8
No related merge requests found
Pipeline #480464 waiting for manual action with stages
in 1 hour, 7 minutes, and 8 seconds
......@@ -429,7 +429,9 @@ impl ClusterTracker {
pub fn warn_if_too_many_pending_statements(&self, parent_hash: Hash) {
if self.pending.iter().filter(|pending| !pending.1.is_empty()).count() >=
self.validators.len()
self.validators.len() &&
// No reason to warn if we are the only node in the cluster.
self.validators.len() > 1
{
gum::warn!(
target: LOG_TARGET,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment