mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 09:47:56 +00:00
Clarify wrong bootnode peer ID error message (#11872)
This commit is contained in:
@@ -2020,12 +2020,16 @@ where
|
||||
|
||||
if this.boot_node_ids.contains(&peer_id) {
|
||||
if let DialError::WrongPeerId { obtained, endpoint } = &error {
|
||||
error!(
|
||||
"💔 The bootnode you want to connect provided a different peer ID than the one you expect: `{}` with `{}`:`{:?}`.",
|
||||
peer_id,
|
||||
obtained,
|
||||
endpoint,
|
||||
);
|
||||
if let ConnectedPoint::Dialer { address, role_override: _ } =
|
||||
endpoint
|
||||
{
|
||||
error!(
|
||||
"💔 The bootnode you want to connect to at `{}` provided a different peer ID `{}` than the one you expect `{}`.",
|
||||
address,
|
||||
obtained,
|
||||
peer_id,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user