mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 03:58:04 +00:00
Print bootnode mismatch message as warning (#12075)
* Print bootnode mismatch message as `warning` * Fix test :thinking_face: * Remove wrong warning
This commit is contained in:
@@ -160,18 +160,7 @@ where
|
||||
.network_config
|
||||
.boot_nodes
|
||||
.into_iter()
|
||||
.filter(|boot_node| {
|
||||
if boot_node.peer_id == local_peer_id {
|
||||
warn!(
|
||||
target: "sub-libp2p",
|
||||
"Local peer ID used in bootnode, ignoring: {}",
|
||||
boot_node,
|
||||
);
|
||||
false
|
||||
} else {
|
||||
true
|
||||
}
|
||||
})
|
||||
.filter(|boot_node| boot_node.peer_id != local_peer_id)
|
||||
.collect();
|
||||
params.network_config.default_peers_set.reserved_nodes = params
|
||||
.network_config
|
||||
@@ -1825,7 +1814,7 @@ where
|
||||
if let ConnectedPoint::Dialer { address, role_override: _ } =
|
||||
endpoint
|
||||
{
|
||||
error!(
|
||||
warn!(
|
||||
"💔 The bootnode you want to connect to at `{}` provided a different peer ID `{}` than the one you expect `{}`.",
|
||||
address,
|
||||
obtained,
|
||||
|
||||
Reference in New Issue
Block a user