bump rpc version; add consensus version

This commit is contained in:
Ethan Buchman 2016-03-16 21:15:33 -04:00
parent ae07c0171d
commit ae295bd9b6
3 changed files with 15 additions and 1 deletions

13
consensus/version.go Normal file
View File

@ -0,0 +1,13 @@
package consensus
import (
. "github.com/tendermint/go-common"
)
// kind of arbitrary
var Spec = "1" // async
var Major = "0" //
var Minor = "2" // replay refactor
var Revision = "1" // round state fix
var Version = Fmt("v%s/%s.%s.%s", Spec, Major, Minor, Revision)

View File

@ -224,6 +224,7 @@ func makeNodeInfo(sw *p2p.Switch, privKey crypto.PrivKeyEd25519) *p2p.NodeInfo {
Other: []string{ Other: []string{
Fmt("wire_version=%v", wire.Version), Fmt("wire_version=%v", wire.Version),
Fmt("p2p_version=%v", p2p.Version), Fmt("p2p_version=%v", p2p.Version),
Fmt("consensus_version=%v", consensus.Version),
Fmt("rpc_version=%v/%v", rpc.Version, rpccore.Version), Fmt("rpc_version=%v/%v", rpc.Version, rpccore.Version),
}, },
} }

View File

@ -2,4 +2,4 @@ package core
// a single integer is sufficient here // a single integer is sufficient here
const Version = "2" // add DialSeeds; re-organize type bytes const Version = "3" // rpc routes for profiling, setting config