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
924 B

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