consensus

package
v0.33.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPart

type BlockPart struct {
	Height               int64      `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32      `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Part                 types.Part `protobuf:"bytes,3,opt,name=part,proto3" json:"part"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

BlockPartMessage is sent when gossipping a piece of the proposed block.

func (*BlockPart) Descriptor

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

func (*BlockPart) GetHeight

func (m *BlockPart) GetHeight() int64

func (*BlockPart) GetPart

func (m *BlockPart) GetPart() types.Part

func (*BlockPart) GetRound

func (m *BlockPart) GetRound() int32

func (*BlockPart) ProtoMessage

func (*BlockPart) ProtoMessage()

func (*BlockPart) Reset

func (m *BlockPart) Reset()

func (*BlockPart) String

func (m *BlockPart) String() string

func (*BlockPart) XXX_DiscardUnknown

func (m *BlockPart) XXX_DiscardUnknown()

func (*BlockPart) XXX_Marshal

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

func (*BlockPart) XXX_Merge

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

func (*BlockPart) XXX_Size

func (m *BlockPart) XXX_Size() int

func (*BlockPart) XXX_Unmarshal

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

type EndHeight

type EndHeight struct {
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

EndHeightMessage marks the end of the given height inside WAL. @internal used by scripts/wal2json util.

func (*EndHeight) Descriptor

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

func (*EndHeight) GetHeight

func (m *EndHeight) GetHeight() int64

func (*EndHeight) ProtoMessage

func (*EndHeight) ProtoMessage()

func (*EndHeight) Reset

func (m *EndHeight) Reset()

func (*EndHeight) String

func (m *EndHeight) String() string

func (*EndHeight) XXX_DiscardUnknown

func (m *EndHeight) XXX_DiscardUnknown()

func (*EndHeight) XXX_Marshal

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

func (*EndHeight) XXX_Merge

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

func (*EndHeight) XXX_Size

func (m *EndHeight) XXX_Size() int

func (*EndHeight) XXX_Unmarshal

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

type HasVote

type HasVote struct {
	Height               int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type                 types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
	Index                uint32              `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

HasVoteMessage is sent to indicate that a particular vote has been received.

func (*HasVote) Descriptor

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

func (*HasVote) GetHeight

func (m *HasVote) GetHeight() int64

func (*HasVote) GetIndex

func (m *HasVote) GetIndex() uint32

func (*HasVote) GetRound

func (m *HasVote) GetRound() int32

func (*HasVote) GetType

func (m *HasVote) GetType() types.SignedMsgType

func (*HasVote) ProtoMessage

func (*HasVote) ProtoMessage()

func (*HasVote) Reset

func (m *HasVote) Reset()

func (*HasVote) String

func (m *HasVote) String() string

func (*HasVote) XXX_DiscardUnknown

func (m *HasVote) XXX_DiscardUnknown()

func (*HasVote) XXX_Marshal

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

func (*HasVote) XXX_Merge

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

func (*HasVote) XXX_Size

func (m *HasVote) XXX_Size() int

func (*HasVote) XXX_Unmarshal

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

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//	*Message_NewRoundStep
	//	*Message_NewValidBlock
	//	*Message_Proposal
	//	*Message_ProposalPol
	//	*Message_BlockPart
	//	*Message_Vote
	//	*Message_HasVote
	//	*Message_VoteSetMaj23
	//	*Message_VoteSetBits
	Sum                  isMessage_Sum `protobuf_oneof:"sum"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetBlockPart

func (m *Message) GetBlockPart() *BlockPart

func (*Message) GetHasVote

func (m *Message) GetHasVote() *HasVote

func (*Message) GetNewRoundStep

func (m *Message) GetNewRoundStep() *NewRoundStep

func (*Message) GetNewValidBlock

func (m *Message) GetNewValidBlock() *NewValidBlock

func (*Message) GetProposal

func (m *Message) GetProposal() *Proposal

func (*Message) GetProposalPol

func (m *Message) GetProposalPol() *ProposalPOL

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) GetVote

func (m *Message) GetVote() *Vote

func (*Message) GetVoteSetBits

func (m *Message) GetVoteSetBits() *VoteSetBits

func (*Message) GetVoteSetMaj23

func (m *Message) GetVoteSetMaj23() *VoteSetMaj23

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Message_BlockPart

type Message_BlockPart struct {
	BlockPart *BlockPart `protobuf:"bytes,5,opt,name=block_part,json=blockPart,proto3,oneof" json:"block_part,omitempty"`
}

type Message_HasVote

type Message_HasVote struct {
	HasVote *HasVote `protobuf:"bytes,7,opt,name=has_vote,json=hasVote,proto3,oneof" json:"has_vote,omitempty"`
}

type Message_NewRoundStep

type Message_NewRoundStep struct {
	NewRoundStep *NewRoundStep `protobuf:"bytes,1,opt,name=new_round_step,json=newRoundStep,proto3,oneof" json:"new_round_step,omitempty"`
}

type Message_NewValidBlock

type Message_NewValidBlock struct {
	NewValidBlock *NewValidBlock `protobuf:"bytes,2,opt,name=new_valid_block,json=newValidBlock,proto3,oneof" json:"new_valid_block,omitempty"`
}

type Message_Proposal

type Message_Proposal struct {
	Proposal *Proposal `protobuf:"bytes,3,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"`
}

type Message_ProposalPol

type Message_ProposalPol struct {
	ProposalPol *ProposalPOL `protobuf:"bytes,4,opt,name=proposal_pol,json=proposalPol,proto3,oneof" json:"proposal_pol,omitempty"`
}

type Message_Vote

type Message_Vote struct {
	Vote *Vote `protobuf:"bytes,6,opt,name=vote,proto3,oneof" json:"vote,omitempty"`
}

type Message_VoteSetBits

type Message_VoteSetBits struct {
	VoteSetBits *VoteSetBits `protobuf:"bytes,9,opt,name=vote_set_bits,json=voteSetBits,proto3,oneof" json:"vote_set_bits,omitempty"`
}

type Message_VoteSetMaj23

type Message_VoteSetMaj23 struct {
	VoteSetMaj23 *VoteSetMaj23 `protobuf:"bytes,8,opt,name=vote_set_maj23,json=voteSetMaj23,proto3,oneof" json:"vote_set_maj23,omitempty"`
}

type MsgInfo

type MsgInfo struct {
	Msg                  Message  `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"`
	PeerID               string   `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MsgInfo are msgs from the reactor which may update the state

func (*MsgInfo) Descriptor

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

func (*MsgInfo) GetMsg

func (m *MsgInfo) GetMsg() Message

func (*MsgInfo) GetPeerID

func (m *MsgInfo) GetPeerID() string

func (*MsgInfo) ProtoMessage

func (*MsgInfo) ProtoMessage()

func (*MsgInfo) Reset

func (m *MsgInfo) Reset()

func (*MsgInfo) String

func (m *MsgInfo) String() string

func (*MsgInfo) XXX_DiscardUnknown

func (m *MsgInfo) XXX_DiscardUnknown()

func (*MsgInfo) XXX_Marshal

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

func (*MsgInfo) XXX_Merge

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

func (*MsgInfo) XXX_Size

func (m *MsgInfo) XXX_Size() int

func (*MsgInfo) XXX_Unmarshal

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

type NewRoundStep

type NewRoundStep struct {
	Height                int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                 int32    `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Step                  uint32   `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	SecondsSinceStartTime int64    `` /* 129-byte string literal not displayed */
	LastCommitRound       int32    `protobuf:"varint,5,opt,name=last_commit_round,json=lastCommitRound,proto3" json:"last_commit_round,omitempty"`
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

NewRoundStepMessage is sent for every step taken in the ConsensusState. For every height/round/step transition

func (*NewRoundStep) Descriptor

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

func (*NewRoundStep) GetHeight

func (m *NewRoundStep) GetHeight() int64

func (*NewRoundStep) GetLastCommitRound

func (m *NewRoundStep) GetLastCommitRound() int32

func (*NewRoundStep) GetRound

func (m *NewRoundStep) GetRound() int32

func (*NewRoundStep) GetSecondsSinceStartTime

func (m *NewRoundStep) GetSecondsSinceStartTime() int64

func (*NewRoundStep) GetStep

func (m *NewRoundStep) GetStep() uint32

func (*NewRoundStep) ProtoMessage

func (*NewRoundStep) ProtoMessage()

func (*NewRoundStep) Reset

func (m *NewRoundStep) Reset()

func (*NewRoundStep) String

func (m *NewRoundStep) String() string

func (*NewRoundStep) XXX_DiscardUnknown

func (m *NewRoundStep) XXX_DiscardUnknown()

func (*NewRoundStep) XXX_Marshal

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

func (*NewRoundStep) XXX_Merge

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

func (*NewRoundStep) XXX_Size

func (m *NewRoundStep) XXX_Size() int

func (*NewRoundStep) XXX_Unmarshal

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

type NewValidBlock

type NewValidBlock struct {
	Height               int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	BlockPartsHeader     types.PartSetHeader `protobuf:"bytes,3,opt,name=block_parts_header,json=blockPartsHeader,proto3" json:"block_parts_header"`
	BlockParts           *bits.BitArray      `protobuf:"bytes,4,opt,name=block_parts,json=blockParts,proto3" json:"block_parts,omitempty"`
	IsCommit             bool                `protobuf:"varint,5,opt,name=is_commit,json=isCommit,proto3" json:"is_commit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

NewValidBlockMessage is sent when a validator observes a valid block B in some round r, i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r. In case the block is also committed, then IsCommit flag is set to true.

func (*NewValidBlock) Descriptor

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

func (*NewValidBlock) GetBlockParts

func (m *NewValidBlock) GetBlockParts() *bits.BitArray

func (*NewValidBlock) GetBlockPartsHeader

func (m *NewValidBlock) GetBlockPartsHeader() types.PartSetHeader

func (*NewValidBlock) GetHeight

func (m *NewValidBlock) GetHeight() int64

func (*NewValidBlock) GetIsCommit

func (m *NewValidBlock) GetIsCommit() bool

func (*NewValidBlock) GetRound

func (m *NewValidBlock) GetRound() int32

func (*NewValidBlock) ProtoMessage

func (*NewValidBlock) ProtoMessage()

func (*NewValidBlock) Reset

func (m *NewValidBlock) Reset()

func (*NewValidBlock) String

func (m *NewValidBlock) String() string

func (*NewValidBlock) XXX_DiscardUnknown

func (m *NewValidBlock) XXX_DiscardUnknown()

func (*NewValidBlock) XXX_Marshal

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

func (*NewValidBlock) XXX_Merge

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

func (*NewValidBlock) XXX_Size

func (m *NewValidBlock) XXX_Size() int

func (*NewValidBlock) XXX_Unmarshal

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

type Proposal

type Proposal struct {
	Proposal             types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

ProposalMessage is sent when a new block is proposed.

func (*Proposal) Descriptor

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

func (*Proposal) GetProposal

func (m *Proposal) GetProposal() types.Proposal

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

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

func (*Proposal) XXX_Merge

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

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

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

type ProposalPOL

type ProposalPOL struct {
	Height               int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	ProposalPolRound     int32         `protobuf:"varint,2,opt,name=proposal_pol_round,json=proposalPolRound,proto3" json:"proposal_pol_round,omitempty"`
	ProposalPol          bits.BitArray `protobuf:"bytes,3,opt,name=proposal_pol,json=proposalPol,proto3" json:"proposal_pol"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

ProposalPOLMessage is sent when a previous proposal is re-proposed.

func (*ProposalPOL) Descriptor

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

func (*ProposalPOL) GetHeight

func (m *ProposalPOL) GetHeight() int64

func (*ProposalPOL) GetProposalPol

func (m *ProposalPOL) GetProposalPol() bits.BitArray

func (*ProposalPOL) GetProposalPolRound

func (m *ProposalPOL) GetProposalPolRound() int32

func (*ProposalPOL) ProtoMessage

func (*ProposalPOL) ProtoMessage()

func (*ProposalPOL) Reset

func (m *ProposalPOL) Reset()

func (*ProposalPOL) String

func (m *ProposalPOL) String() string

func (*ProposalPOL) XXX_DiscardUnknown

func (m *ProposalPOL) XXX_DiscardUnknown()

func (*ProposalPOL) XXX_Marshal

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

func (*ProposalPOL) XXX_Merge

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

func (*ProposalPOL) XXX_Size

func (m *ProposalPOL) XXX_Size() int

func (*ProposalPOL) XXX_Unmarshal

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

type TimedWALMessage

type TimedWALMessage struct {
	Time                 time.Time   `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
	Msg                  *WALMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

TimedWALMessage wraps WALMessage and adds Time for debugging purposes.

func (*TimedWALMessage) Descriptor

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

func (*TimedWALMessage) GetMsg

func (m *TimedWALMessage) GetMsg() *WALMessage

func (*TimedWALMessage) GetTime

func (m *TimedWALMessage) GetTime() time.Time

func (*TimedWALMessage) ProtoMessage

func (*TimedWALMessage) ProtoMessage()

func (*TimedWALMessage) Reset

func (m *TimedWALMessage) Reset()

func (*TimedWALMessage) String

func (m *TimedWALMessage) String() string

func (*TimedWALMessage) XXX_DiscardUnknown

func (m *TimedWALMessage) XXX_DiscardUnknown()

func (*TimedWALMessage) XXX_Marshal

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

func (*TimedWALMessage) XXX_Merge

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

func (*TimedWALMessage) XXX_Size

func (m *TimedWALMessage) XXX_Size() int

func (*TimedWALMessage) XXX_Unmarshal

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

type TimeoutInfo

type TimeoutInfo struct {
	Duration             time.Duration `protobuf:"bytes,1,opt,name=duration,proto3,stdduration" json:"duration"`
	Height               int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	Step                 uint32        `protobuf:"varint,4,opt,name=step,proto3" json:"step,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

TimeoutInfo internally generated messages which may update the state

func (*TimeoutInfo) Descriptor

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

func (*TimeoutInfo) GetDuration

func (m *TimeoutInfo) GetDuration() time.Duration

func (*TimeoutInfo) GetHeight

func (m *TimeoutInfo) GetHeight() int64

func (*TimeoutInfo) GetRound

func (m *TimeoutInfo) GetRound() int32

func (*TimeoutInfo) GetStep

func (m *TimeoutInfo) GetStep() uint32

func (*TimeoutInfo) ProtoMessage

func (*TimeoutInfo) ProtoMessage()

func (*TimeoutInfo) Reset

func (m *TimeoutInfo) Reset()

func (*TimeoutInfo) String

func (m *TimeoutInfo) String() string

func (*TimeoutInfo) XXX_DiscardUnknown

func (m *TimeoutInfo) XXX_DiscardUnknown()

func (*TimeoutInfo) XXX_Marshal

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

func (*TimeoutInfo) XXX_Merge

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

func (*TimeoutInfo) XXX_Size

func (m *TimeoutInfo) XXX_Size() int

func (*TimeoutInfo) XXX_Unmarshal

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

type Vote

type Vote struct {
	Vote                 *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

VoteMessage is sent when voting for a proposal (or lack thereof).

func (*Vote) Descriptor

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

func (*Vote) GetVote

func (m *Vote) GetVote() *types.Vote

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) String

func (m *Vote) String() string

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

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

func (*Vote) XXX_Merge

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

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

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

type VoteSetBits

type VoteSetBits struct {
	Height               int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type                 types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
	BlockID              types.BlockID       `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	Votes                bits.BitArray       `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

VoteSetBitsMessage is sent to communicate the bit-array of votes seen for the BlockID.

func (*VoteSetBits) Descriptor

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

func (*VoteSetBits) GetBlockID

func (m *VoteSetBits) GetBlockID() types.BlockID

func (*VoteSetBits) GetHeight

func (m *VoteSetBits) GetHeight() int64

func (*VoteSetBits) GetRound

func (m *VoteSetBits) GetRound() int32

func (*VoteSetBits) GetType

func (m *VoteSetBits) GetType() types.SignedMsgType

func (*VoteSetBits) GetVotes

func (m *VoteSetBits) GetVotes() bits.BitArray

func (*VoteSetBits) ProtoMessage

func (*VoteSetBits) ProtoMessage()

func (*VoteSetBits) Reset

func (m *VoteSetBits) Reset()

func (*VoteSetBits) String

func (m *VoteSetBits) String() string

func (*VoteSetBits) XXX_DiscardUnknown

func (m *VoteSetBits) XXX_DiscardUnknown()

func (*VoteSetBits) XXX_Marshal

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

func (*VoteSetBits) XXX_Merge

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

func (*VoteSetBits) XXX_Size

func (m *VoteSetBits) XXX_Size() int

func (*VoteSetBits) XXX_Unmarshal

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

type VoteSetMaj23

type VoteSetMaj23 struct {
	Height               int64               `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                int32               `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type                 types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
	BlockID              types.BlockID       `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

VoteSetMaj23Message is sent to indicate that a given BlockID has seen +2/3 votes.

func (*VoteSetMaj23) Descriptor

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

func (*VoteSetMaj23) GetBlockID

func (m *VoteSetMaj23) GetBlockID() types.BlockID

func (*VoteSetMaj23) GetHeight

func (m *VoteSetMaj23) GetHeight() int64

func (*VoteSetMaj23) GetRound

func (m *VoteSetMaj23) GetRound() int32

func (*VoteSetMaj23) GetType

func (m *VoteSetMaj23) GetType() types.SignedMsgType

func (*VoteSetMaj23) ProtoMessage

func (*VoteSetMaj23) ProtoMessage()

func (*VoteSetMaj23) Reset

func (m *VoteSetMaj23) Reset()

func (*VoteSetMaj23) String

func (m *VoteSetMaj23) String() string

func (*VoteSetMaj23) XXX_DiscardUnknown

func (m *VoteSetMaj23) XXX_DiscardUnknown()

func (*VoteSetMaj23) XXX_Marshal

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

func (*VoteSetMaj23) XXX_Merge

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

func (*VoteSetMaj23) XXX_Size

func (m *VoteSetMaj23) XXX_Size() int

func (*VoteSetMaj23) XXX_Unmarshal

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

type WALMessage

type WALMessage struct {
	// Types that are valid to be assigned to Sum:
	//	*WALMessage_EventDataRoundState
	//	*WALMessage_MsgInfo
	//	*WALMessage_TimeoutInfo
	//	*WALMessage_EndHeight
	Sum                  isWALMessage_Sum `protobuf_oneof:"sum"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*WALMessage) Descriptor

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

func (*WALMessage) GetEndHeight

func (m *WALMessage) GetEndHeight() *EndHeight

func (*WALMessage) GetEventDataRoundState

func (m *WALMessage) GetEventDataRoundState() *types.EventDataRoundState

func (*WALMessage) GetMsgInfo

func (m *WALMessage) GetMsgInfo() *MsgInfo

func (*WALMessage) GetSum

func (m *WALMessage) GetSum() isWALMessage_Sum

func (*WALMessage) GetTimeoutInfo

func (m *WALMessage) GetTimeoutInfo() *TimeoutInfo

func (*WALMessage) ProtoMessage

func (*WALMessage) ProtoMessage()

func (*WALMessage) Reset

func (m *WALMessage) Reset()

func (*WALMessage) String

func (m *WALMessage) String() string

func (*WALMessage) XXX_DiscardUnknown

func (m *WALMessage) XXX_DiscardUnknown()

func (*WALMessage) XXX_Marshal

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

func (*WALMessage) XXX_Merge

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

func (*WALMessage) XXX_OneofWrappers

func (*WALMessage) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*WALMessage) XXX_Size

func (m *WALMessage) XXX_Size() int

func (*WALMessage) XXX_Unmarshal

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

type WALMessage_EndHeight

type WALMessage_EndHeight struct {
	EndHeight *EndHeight `protobuf:"bytes,4,opt,name=end_height,json=endHeight,proto3,oneof" json:"end_height,omitempty"`
}

type WALMessage_EventDataRoundState

type WALMessage_EventDataRoundState struct {
	EventDataRoundState *types.EventDataRoundState `` /* 128-byte string literal not displayed */
}

type WALMessage_MsgInfo

type WALMessage_MsgInfo struct {
	MsgInfo *MsgInfo `protobuf:"bytes,2,opt,name=msg_info,json=msgInfo,proto3,oneof" json:"msg_info,omitempty"`
}

type WALMessage_TimeoutInfo

type WALMessage_TimeoutInfo struct {
	TimeoutInfo *TimeoutInfo `protobuf:"bytes,3,opt,name=timeout_info,json=timeoutInfo,proto3,oneof" json:"timeout_info,omitempty"`
}

Jump to

Keyboard shortcuts

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