version

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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

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

func (*App) GetProtocol

func (m *App) GetProtocol() uint64

func (*App) GetSoftware

func (m *App) GetSoftware() string

func (*App) Marshal

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

func (*App) MarshalTo

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

func (*App) MarshalToSizedBuffer

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

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) Reset

func (m *App) Reset()

func (*App) Size

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

func (*App) String

func (m *App) String() string

func (*App) Unmarshal

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

func (*App) XXX_DiscardUnknown

func (m *App) XXX_DiscardUnknown()

func (*App) XXX_Marshal

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

func (*App) XXX_Merge

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

func (*App) XXX_Size

func (m *App) XXX_Size() int

func (*App) XXX_Unmarshal

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

func (c Consensus) AminoSize() int

func (*Consensus) Descriptor

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

func (*Consensus) Equal

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

func (*Consensus) GetApp

func (m *Consensus) GetApp() uint64

func (*Consensus) GetBlock

func (m *Consensus) GetBlock() uint64

func (*Consensus) Marshal

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

func (*Consensus) MarshalTo

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

func (*Consensus) MarshalToSizedBuffer

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

func (*Consensus) ProtoMessage

func (*Consensus) ProtoMessage()

func (*Consensus) Reset

func (m *Consensus) Reset()

func (*Consensus) Size

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

func (*Consensus) String

func (m *Consensus) String() string

func (*Consensus) Unmarshal

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

func (*Consensus) UnmarshalFromAmino

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

func (*Consensus) XXX_DiscardUnknown

func (m *Consensus) XXX_DiscardUnknown()

func (*Consensus) XXX_Marshal

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

func (*Consensus) XXX_Merge

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

func (*Consensus) XXX_Size

func (m *Consensus) XXX_Size() int

func (*Consensus) XXX_Unmarshal

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