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.

38 lines
830 B

6 years ago
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. // TMCoreSemVer is the current version of Tendermint Core.
  5. // It's the Semantic Version of the software.
  6. TMCoreSemVer string
  7. )
  8. const (
  9. // ABCISemVer is the semantic version of the ABCI library
  10. ABCISemVer = "0.17.0"
  11. ABCIVersion = ABCISemVer
  12. )
  13. var (
  14. // P2PProtocol versions all p2p behavior and msgs.
  15. // This includes proposer selection.
  16. P2PProtocol uint64 = 8
  17. // BlockProtocol versions all block data structures and processing.
  18. // This includes validity of blocks and state updates.
  19. BlockProtocol uint64 = 11
  20. )
  21. type Consensus struct {
  22. Block uint64 `json:"block"`
  23. App uint64 `json:"app"`
  24. }
  25. func (c Consensus) ToProto() tmversion.Consensus {
  26. return tmversion.Consensus{
  27. Block: c.Block,
  28. App: c.App,
  29. }
  30. }