From 09bfe2e503f498ef4cfc2fb82494870378be323c Mon Sep 17 00:00:00 2001 From: Alexandru Gheorghe Date: Fri, 7 Jun 2024 11:46:32 +0300 Subject: [PATCH] statement-distribution: Fix false warning ... when backing group is of size 1. Signed-off-by: Alexandru Gheorghe --- .../node/network/statement-distribution/src/v2/cluster.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polkadot/node/network/statement-distribution/src/v2/cluster.rs b/polkadot/node/network/statement-distribution/src/v2/cluster.rs index 87b25c785d83..26d7a68eb2a7 100644 --- a/polkadot/node/network/statement-distribution/src/v2/cluster.rs +++ b/polkadot/node/network/statement-distribution/src/v2/cluster.rs @@ -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,