spec: add missing field to NodeInfoOther (#2426)

and fix formatting

Refs https://github.com/tendermint/tendermint/pull/2417#discussion_r218080500
This commit is contained in:
Anton Kaliaev 2018-09-18 13:28:32 +04:00 committed by Alexander Simmerl
parent 2fbf810cd8
commit 89462c52d9
2 changed files with 3 additions and 1 deletions

View File

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

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,