Browse Source

spec: add missing field to NodeInfoOther (#2426)

and fix formatting

Refs https://github.com/tendermint/tendermint/pull/2417#discussion_r218080500
pull/2370/merge
Anton Kaliaev 6 years ago
committed by Alexander Simmerl
parent
commit
89462c52d9
2 changed files with 3 additions and 1 deletions
  1. +1
    -0
      docs/spec/p2p/peer.md
  2. +2
    -1
      p2p/node_info.go

+ 1
- 0
docs/spec/p2p/peer.md View File

@ -92,6 +92,7 @@ type NodeInfoOther struct {
ConsensusVersion string
RPCVersion string
TxIndex string
RPCAddress string
}
```


+ 2
- 1
p2p/node_info.go View File

@ -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,


Loading…
Cancel
Save