bitbucket.org/number571/tendermint@v0.8.14/version/version.go (about)

     1  package version
     2  
     3  import tmversion "bitbucket.org/number571/tendermint/proto/tendermint/version"
     4  
     5  var (
     6  	TMVersion = TMVersionDefault
     7  )
     8  
     9  const (
    10  
    11  	// TMVersionDefault is the used as the fallback version of Tendermint Core
    12  	// when not using git describe. It is formatted with semantic versioning.
    13  	TMVersionDefault = "0.34.11"
    14  	// ABCISemVer is the semantic version of the ABCI library
    15  	ABCISemVer = "0.17.0"
    16  
    17  	ABCIVersion = ABCISemVer
    18  )
    19  
    20  var (
    21  	// P2PProtocol versions all p2p behavior and msgs.
    22  	// This includes proposer selection.
    23  	P2PProtocol uint64 = 8
    24  
    25  	// BlockProtocol versions all block data structures and processing.
    26  	// This includes validity of blocks and state updates.
    27  	BlockProtocol uint64 = 11
    28  )
    29  
    30  type Consensus struct {
    31  	Block uint64 `json:"block"`
    32  	App   uint64 `json:"app"`
    33  }
    34  
    35  func (c Consensus) ToProto() tmversion.Consensus {
    36  	return tmversion.Consensus{
    37  		Block: c.Block,
    38  		App:   c.App,
    39  	}
    40  }