mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
Add warning when peer_id is not available when building topology (#2140)
... see https://github.com/paritytech/polkadot-sdk/issues/2138 for why is not good, until we fix it let's add a warning to understand if this is happening in the wild. --------- Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
committed by
GitHub
parent
305aefc43d
commit
fb2dc6df8d
@@ -551,6 +551,15 @@ where
|
||||
let mut peers = Vec::with_capacity(neighbors.len());
|
||||
for (discovery_id, validator_index) in neighbors {
|
||||
let addr = get_peer_id_by_authority_id(ads, discovery_id.clone()).await;
|
||||
if addr.is_none() {
|
||||
// See on why is not good in https://github.com/paritytech/polkadot-sdk/issues/2138
|
||||
gum::debug!(
|
||||
target: LOG_TARGET,
|
||||
?validator_index,
|
||||
"Could not determine peer_id for validator, let the team know in \n
|
||||
https://github.com/paritytech/polkadot-sdk/issues/2138"
|
||||
)
|
||||
}
|
||||
peers.push(TopologyPeerInfo {
|
||||
peer_ids: addr.into_iter().collect(),
|
||||
validator_index,
|
||||
|
||||
Reference in New Issue
Block a user