ADR-016: Add protocol Version to NodeInfo (#2654)

* p2p: add protocol Version to NodeInfo

* update node pkg. remove extraneous version files

* update changelog and docs

* fix test

* p2p: Version -> ProtocolVersion; more ValidateBasic and tests
This commit is contained in:
Ethan Buchman
2018-10-18 10:29:59 -04:00
committed by GitHub
parent 455d34134c
commit 14c1baeb24
13 changed files with 246 additions and 129 deletions

View File

@ -14,14 +14,15 @@ import (
func testNodeInfo(id p2p.ID) p2p.DefaultNodeInfo {
return p2p.DefaultNodeInfo{
ID_: id,
Moniker: "SOMENAME",
Network: "SOMENAME",
ListenAddr: "SOMEADDR",
Version: "SOMEVER",
ProtocolVersion: p2p.InitProtocolVersion,
ID_: id,
Moniker: "SOMENAME",
Network: "SOMENAME",
ListenAddr: "SOMEADDR",
Version: "SOMEVER",
Other: p2p.DefaultNodeInfoOther{
AminoVersion: "SOMESTRING",
P2PVersion: "OTHERSTRING",
TxIndex: "on",
RPCAddress: "0.0.0.0:26657",
},
}
}