Revision 6d7613d9dce4cfba281879dcd15edf3647b4e48b authored by William Banfield on 15 December 2021, 16:49:05 UTC, committed by William Banfield on 15 December 2021, 16:49:05 UTC
1 parent 9cd4cfe
Raw File
version.go
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.35.0-unreleased"
	// 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,
	}
}
back to top