Using Prysm BN with the --bootstrap-node
with and invalid signature leads to a wrong error message.
#13988
Labels
Bug
Something isn't working
Describe the bug
When running Prysm BN with this option:
we get the following error message:
The disturbing part is
failed to parse multiaddr
, since we did not provided a multi-address but an ENR.When using the ENR dump tool from the
devp2p
tool, we see that corresponding signature is invalid.So we would expected to get such an
invalid signature
error message instead of afailed to parse multiaddr
error message.The root cause of this bug is, in
parseGenericAddrs
, here we get an error, but this error is skipped and shadowed by this error.A solution would be to first check if the given string has
enode://
orenr:
prefix. In this case try theenode.Parse
method.In the contrary, try the
multiAddrFromString
method.The text was updated successfully, but these errors were encountered: