You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
914 B

package version
import tmversion "github.com/tendermint/tendermint/proto/tendermint/version"
var (
TMVersion = TMVersionDefault
)
const (
// TMVersionDefault is the used as the fallback version of Tendermint Core
// when not using git describe. It is formatted with semantic versioning.
TMVersionDefault = "0.34.10"
// ABCISemVer is the semantic version of the ABCI library
ABCISemVer = "0.17.0"
ABCIVersion = ABCISemVer
)
var (
// P2PProtocol versions all p2p behavior and msgs.
// This includes proposer selection.
P2PProtocol uint64 = 8
// BlockProtocol versions all block data structures and processing.
// This includes validity of blocks and state updates.
BlockProtocol uint64 = 11
)
type Consensus struct {
Block uint64 `json:"block"`
App uint64 `json:"app"`
}
func (c Consensus) ToProto() tmversion.Consensus {
return tmversion.Consensus{
Block: c.Block,
App: c.App,
}
}