Fix error message when providing an incorrect peer-id (#5724)

* Fix error message when providing an incorrect peer-id

* Fix error message to cover all cases

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
Chevdor
2020-04-23 22:20:24 +02:00
committed by GitHub
parent 3ecc2f13de
commit e731817e24
+2 -2
View File
@@ -1158,9 +1158,9 @@ impl<B: BlockT + 'static, H: ExHashT> Future for NetworkWorker<B, H> {
if this.boot_node_ids.contains(&peer_id) {
if let PendingConnectionError::InvalidPeerId = error {
error!(
"💔 Invalid peer ID from bootnode, expected `{}` at address `{}`.",
peer_id,
"💔 The bootnode you want to connect to at `{}` provided a different peer ID than the one you expect: `{}`.",
address,
peer_id,
);
}
}