From 8a0c8cc425035e0cbeda071a2fb8a2642b742bce Mon Sep 17 00:00:00 2001 From: Sergei Shulepov <sergei@parity.io> Date: Tue, 2 Feb 2021 18:28:55 +0100 Subject: [PATCH] Log unknown collator (#2367) --- .../node/network/collator-protocol/src/validator_side.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polkadot/node/network/collator-protocol/src/validator_side.rs b/polkadot/node/network/collator-protocol/src/validator_side.rs index f15a95f07be..33a97c60154 100644 --- a/polkadot/node/network/collator-protocol/src/validator_side.rs +++ b/polkadot/node/network/collator-protocol/src/validator_side.rs @@ -537,6 +537,12 @@ where if let Some(collator) = state.known_collators.get(&origin) { notify_candidate_selection(ctx, collator.clone(), relay_parent, para_id).await; + } else { + tracing::debug!( + target: LOG_TARGET, + peer_id = ?origin, + "advertise collation received from an unknown collator", + ); } } RequestCollation(_, _, _) => { -- GitLab