diff --git a/docs/spec/p2p/peer.md b/docs/spec/p2p/peer.md index eb344c291..8f8f12b13 100644 --- a/docs/spec/p2p/peer.md +++ b/docs/spec/p2p/peer.md @@ -92,6 +92,7 @@ type NodeInfoOther struct { ConsensusVersion string RPCVersion string TxIndex string + RPCAddress string } ``` diff --git a/p2p/node_info.go b/p2p/node_info.go index c0718deee..a0df3d374 100644 --- a/p2p/node_info.go +++ b/p2p/node_info.go @@ -83,7 +83,8 @@ func (info NodeInfo) Validate() error { // Sanitize versions // XXX: Should we be more strict about version and address formats? other := info.Other - versions := []string{other.AminoVersion, + versions := []string{ + other.AminoVersion, other.AminoVersion, other.P2PVersion, other.ConsensusVersion,