version

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TMCoreSemVer = "0.33.9"

	// ABCISemVer is the semantic version of the ABCI library
	ABCISemVer  = "0.16.2"
	ABCIVersion = ABCISemVer
)

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// GitCommit is the current HEAD set using ldflags.
	GitCommit string

	// Version is the built softwares version.
	Version = TMCoreSemVer
)

Functions

This section is empty.

Types

type App

type App struct {
	Protocol Protocol `json:"protocol"`
	Software string   `json:"software"`
}

App includes the protocol and software version for the application. This information is included in ResponseInfo. The App.Protocol can be updated in ResponseEndBlock.

func (*App) Descriptor added in v1.3.0

func (*App) Descriptor() ([]byte, []int)

func (*App) GetProtocol added in v1.3.0

func (m *App) GetProtocol() uint64

func (*App) GetSoftware added in v1.3.0

func (m *App) GetSoftware() string

func (*App) Marshal added in v1.3.0

func (m *App) Marshal() (dAtA []byte, err error)

func (*App) MarshalTo added in v1.3.0

func (m *App) MarshalTo(dAtA []byte) (int, error)

func (*App) MarshalToSizedBuffer added in v1.3.0

func (m *App) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*App) ProtoMessage added in v1.3.0

func (*App) ProtoMessage()

func (*App) Reset added in v1.3.0

func (m *App) Reset()

func (*App) Size added in v1.3.0

func (m *App) Size() (n int)

func (*App) String added in v1.3.0

func (m *App) String() string

func (*App) Unmarshal added in v1.3.0

func (m *App) Unmarshal(dAtA []byte) error

func (*App) XXX_DiscardUnknown added in v1.3.0

func (m *App) XXX_DiscardUnknown()

func (*App) XXX_Marshal added in v1.3.0

func (m *App) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*App) XXX_Merge added in v1.3.0

func (m *App) XXX_Merge(src proto.Message)

func (*App) XXX_Size added in v1.3.0

func (m *App) XXX_Size() int

func (*App) XXX_Unmarshal added in v1.3.0

func (m *App) XXX_Unmarshal(b []byte) error

type Consensus

type Consensus struct {
	Block Protocol `json:"block"`
	App   Protocol `json:"app"`
}

Consensus captures the consensus rules for processing a block in the blockchain, including all blockchain data structures and the rules of the application's state transition machine.

func (Consensus) AminoSize added in v1.1.5

func (c Consensus) AminoSize() int

func (*Consensus) Descriptor added in v1.3.0

func (*Consensus) Descriptor() ([]byte, []int)

func (*Consensus) Equal added in v1.3.0

func (this *Consensus) Equal(that interface{}) bool

func (*Consensus) GetApp added in v1.3.0

func (m *Consensus) GetApp() uint64

func (*Consensus) GetBlock added in v1.3.0

func (m *Consensus) GetBlock() uint64

func (*Consensus) Marshal added in v1.3.0

func (m *Consensus) Marshal() (dAtA []byte, err error)

func (*Consensus) MarshalTo added in v1.3.0

func (m *Consensus) MarshalTo(dAtA []byte) (int, error)

func (*Consensus) MarshalToSizedBuffer added in v1.3.0

func (m *Consensus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Consensus) ProtoMessage added in v1.3.0

func (*Consensus) ProtoMessage()

func (*Consensus) Reset added in v1.3.0

func (m *Consensus) Reset()

func (*Consensus) Size added in v1.3.0

func (m *Consensus) Size() (n int)

func (*Consensus) String added in v1.3.0

func (m *Consensus) String() string

func (*Consensus) Unmarshal added in v1.3.0

func (m *Consensus) Unmarshal(dAtA []byte) error

func (*Consensus) UnmarshalFromAmino added in v1.1.5

func (c *Consensus) UnmarshalFromAmino(_ *amino.Codec, data []byte) error

func (*Consensus) XXX_DiscardUnknown added in v1.3.0

func (m *Consensus) XXX_DiscardUnknown()

func (*Consensus) XXX_Marshal added in v1.3.0

func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Consensus) XXX_Merge added in v1.3.0

func (m *Consensus) XXX_Merge(src proto.Message)

func (*Consensus) XXX_Size added in v1.3.0

func (m *Consensus) XXX_Size() int

func (*Consensus) XXX_Unmarshal added in v1.3.0

func (m *Consensus) XXX_Unmarshal(b []byte) error

type Protocol

type Protocol uint64

Protocol is used for implementation agnostic versioning.

var (
	// P2PProtocol versions all p2p behaviour and msgs.
	// This includes proposer selection.
	P2PProtocol Protocol = 7

	// BlockProtocol versions all block data structures and processing.
	// This includes validity of blocks and state updates.
	BlockProtocol Protocol = 10
)
var (
	IBCP2PProtocol   Protocol = 8
	IBCBlockProtocol Protocol = 11
)

func (Protocol) Uint64

func (p Protocol) Uint64() uint64

Uint64 returns the Protocol version as a uint64, eg. for compatibility with ABCI types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL