This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Improve checking for peer id mismatch #5369
Labels
I7-refactor
Code needs refactoring.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
#5365 introduced an error when we can not connect to a bootnode, because the requested peer id is different than the one returned by the remote node.
However, the implementation is based on string matching. This should be improved. A solution could be to provide a trait that is added to the boxed error in
libp2p
. The trait could look like this:The trait would than be used to check the error, instead of using string matching.
cc @tomaka
The text was updated successfully, but these errors were encountered: