cmd/devp2p/internal/ethtest: clarify protocol version in tests (#23872)

Debugging recent geth failures in hive, it took a while to realize that it's because
geth doesn't support eth/65 any longer. This PR makes such failures a bit more
easy to figure out.
This commit is contained in:
Martin Holst Swende
2021-11-09 14:45:34 +01:00
committed by GitHub
parent 6b9c77f060
commit 0efed7f58b
2 changed files with 45 additions and 45 deletions

View File

@ -131,7 +131,7 @@ func (c *Conn) handshake() error {
}
c.negotiateEthProtocol(msg.Caps)
if c.negotiatedProtoVersion == 0 {
return fmt.Errorf("unexpected eth protocol version")
return fmt.Errorf("could not negotiate protocol (remote caps: %v, local eth version: %v)", msg.Caps, c.ourHighestProtoVersion)
}
return nil
default: