Versions in this module Expand all Collapse all v3 v3.0.1 Dec 25, 2023 v3.0.0 Dec 23, 2022 Changes in this version + var ErrIntOverflowTbft = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTbft = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupTbft = fmt.Errorf("proto: unexpected end of group") + var Step_name = map[int32]string + var Step_value = map[string]int32 + var TBFTMsgType_name = map[int32]string + var TBFTMsgType_value = map[string]int32 + var VoteType_name = map[int32]string + var VoteType_value = map[string]int32 + var WalEntryType_name = map[int32]string + var WalEntryType_value = map[string]int32 + type BlockVotes struct + Sum uint64 + Votes map[string]*Vote + func (*BlockVotes) Descriptor() ([]byte, []int) + func (*BlockVotes) ProtoMessage() + func (m *BlockVotes) GetSum() uint64 + func (m *BlockVotes) GetVotes() map[string]*Vote + func (m *BlockVotes) Marshal() (dAtA []byte, err error) + func (m *BlockVotes) MarshalTo(dAtA []byte) (int, error) + func (m *BlockVotes) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BlockVotes) Reset() + func (m *BlockVotes) Size() (n int) + func (m *BlockVotes) String() string + func (m *BlockVotes) Unmarshal(dAtA []byte) error + func (m *BlockVotes) XXX_DiscardUnknown() + func (m *BlockVotes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BlockVotes) XXX_Merge(src proto.Message) + func (m *BlockVotes) XXX_Size() int + func (m *BlockVotes) XXX_Unmarshal(b []byte) error + type ConsensusState struct + Height uint64 + HeightRoundVoteSet *HeightRoundVoteSet + Id string + LockedProposal *Proposal + Proposal *Proposal + Round int32 + Step Step + ValidProposal *Proposal + VerifingProposal *Proposal + func (*ConsensusState) Descriptor() ([]byte, []int) + func (*ConsensusState) ProtoMessage() + func (m *ConsensusState) GetHeight() uint64 + func (m *ConsensusState) GetHeightRoundVoteSet() *HeightRoundVoteSet + func (m *ConsensusState) GetId() string + func (m *ConsensusState) GetLockedProposal() *Proposal + func (m *ConsensusState) GetProposal() *Proposal + func (m *ConsensusState) GetRound() int32 + func (m *ConsensusState) GetStep() Step + func (m *ConsensusState) GetValidProposal() *Proposal + func (m *ConsensusState) GetVerifingProposal() *Proposal + func (m *ConsensusState) Marshal() (dAtA []byte, err error) + func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error) + func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ConsensusState) Reset() + func (m *ConsensusState) Size() (n int) + func (m *ConsensusState) String() string + func (m *ConsensusState) Unmarshal(dAtA []byte) error + func (m *ConsensusState) XXX_DiscardUnknown() + func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ConsensusState) XXX_Merge(src proto.Message) + func (m *ConsensusState) XXX_Size() int + func (m *ConsensusState) XXX_Unmarshal(b []byte) error + type FetchRoundQC struct + Height uint64 + Id string + Round int32 + func (*FetchRoundQC) Descriptor() ([]byte, []int) + func (*FetchRoundQC) ProtoMessage() + func (m *FetchRoundQC) GetHeight() uint64 + func (m *FetchRoundQC) GetId() string + func (m *FetchRoundQC) GetRound() int32 + func (m *FetchRoundQC) Marshal() (dAtA []byte, err error) + func (m *FetchRoundQC) MarshalTo(dAtA []byte) (int, error) + func (m *FetchRoundQC) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *FetchRoundQC) Reset() + func (m *FetchRoundQC) Size() (n int) + func (m *FetchRoundQC) String() string + func (m *FetchRoundQC) Unmarshal(dAtA []byte) error + func (m *FetchRoundQC) XXX_DiscardUnknown() + func (m *FetchRoundQC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *FetchRoundQC) XXX_Merge(src proto.Message) + func (m *FetchRoundQC) XXX_Size() int + func (m *FetchRoundQC) XXX_Unmarshal(b []byte) error + type GossipState struct + Height uint64 + Id string + Proposal []byte + Round int32 + RoundVoteSet *RoundVoteSet + Step Step + VerifingProposal []byte + func (*GossipState) Descriptor() ([]byte, []int) + func (*GossipState) ProtoMessage() + func (m *GossipState) GetHeight() uint64 + func (m *GossipState) GetId() string + func (m *GossipState) GetProposal() []byte + func (m *GossipState) GetRound() int32 + func (m *GossipState) GetRoundVoteSet() *RoundVoteSet + func (m *GossipState) GetStep() Step + func (m *GossipState) GetVerifingProposal() []byte + func (m *GossipState) Marshal() (dAtA []byte, err error) + func (m *GossipState) MarshalTo(dAtA []byte) (int, error) + func (m *GossipState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GossipState) Reset() + func (m *GossipState) Size() (n int) + func (m *GossipState) String() string + func (m *GossipState) Unmarshal(dAtA []byte) error + func (m *GossipState) XXX_DiscardUnknown() + func (m *GossipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GossipState) XXX_Merge(src proto.Message) + func (m *GossipState) XXX_Size() int + func (m *GossipState) XXX_Unmarshal(b []byte) error + type HeightRoundVoteSet struct + Height uint64 + Round int32 + RoundVoteSets map[int32]*RoundVoteSet + func (*HeightRoundVoteSet) Descriptor() ([]byte, []int) + func (*HeightRoundVoteSet) ProtoMessage() + func (m *HeightRoundVoteSet) GetHeight() uint64 + func (m *HeightRoundVoteSet) GetRound() int32 + func (m *HeightRoundVoteSet) GetRoundVoteSets() map[int32]*RoundVoteSet + func (m *HeightRoundVoteSet) Marshal() (dAtA []byte, err error) + func (m *HeightRoundVoteSet) MarshalTo(dAtA []byte) (int, error) + func (m *HeightRoundVoteSet) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *HeightRoundVoteSet) Reset() + func (m *HeightRoundVoteSet) Size() (n int) + func (m *HeightRoundVoteSet) String() string + func (m *HeightRoundVoteSet) Unmarshal(dAtA []byte) error + func (m *HeightRoundVoteSet) XXX_DiscardUnknown() + func (m *HeightRoundVoteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HeightRoundVoteSet) XXX_Merge(src proto.Message) + func (m *HeightRoundVoteSet) XXX_Size() int + func (m *HeightRoundVoteSet) XXX_Unmarshal(b []byte) error + type Proposal struct + Block *common.Block + Endorsement *common.EndorsementEntry + Height uint64 + PolRound int32 + Qc []*Vote + Round int32 + TxsRwSet map[string]*common.TxRWSet + Voter string + func (*Proposal) Descriptor() ([]byte, []int) + func (*Proposal) ProtoMessage() + func (m *Proposal) GetBlock() *common.Block + func (m *Proposal) GetEndorsement() *common.EndorsementEntry + func (m *Proposal) GetHeight() uint64 + func (m *Proposal) GetPolRound() int32 + func (m *Proposal) GetQc() []*Vote + func (m *Proposal) GetRound() int32 + func (m *Proposal) GetTxsRwSet() map[string]*common.TxRWSet + func (m *Proposal) GetVoter() string + func (m *Proposal) Marshal() (dAtA []byte, err error) + func (m *Proposal) MarshalTo(dAtA []byte) (int, error) + func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Proposal) Reset() + func (m *Proposal) Size() (n int) + func (m *Proposal) String() string + func (m *Proposal) Unmarshal(dAtA []byte) error + func (m *Proposal) XXX_DiscardUnknown() + func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Proposal) XXX_Merge(src proto.Message) + func (m *Proposal) XXX_Size() int + func (m *Proposal) XXX_Unmarshal(b []byte) error + type RoundQC struct + Height uint64 + Id string + Qc *VoteSet + Round int32 + func (*RoundQC) Descriptor() ([]byte, []int) + func (*RoundQC) ProtoMessage() + func (m *RoundQC) GetHeight() uint64 + func (m *RoundQC) GetId() string + func (m *RoundQC) GetQc() *VoteSet + func (m *RoundQC) GetRound() int32 + func (m *RoundQC) Marshal() (dAtA []byte, err error) + func (m *RoundQC) MarshalTo(dAtA []byte) (int, error) + func (m *RoundQC) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RoundQC) Reset() + func (m *RoundQC) Size() (n int) + func (m *RoundQC) String() string + func (m *RoundQC) Unmarshal(dAtA []byte) error + func (m *RoundQC) XXX_DiscardUnknown() + func (m *RoundQC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RoundQC) XXX_Merge(src proto.Message) + func (m *RoundQC) XXX_Size() int + func (m *RoundQC) XXX_Unmarshal(b []byte) error + type RoundVoteSet struct + Height uint64 + Precommits *VoteSet + Prevotes *VoteSet + Round int32 + func (*RoundVoteSet) Descriptor() ([]byte, []int) + func (*RoundVoteSet) ProtoMessage() + func (m *RoundVoteSet) GetHeight() uint64 + func (m *RoundVoteSet) GetPrecommits() *VoteSet + func (m *RoundVoteSet) GetPrevotes() *VoteSet + func (m *RoundVoteSet) GetRound() int32 + func (m *RoundVoteSet) Marshal() (dAtA []byte, err error) + func (m *RoundVoteSet) MarshalTo(dAtA []byte) (int, error) + func (m *RoundVoteSet) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RoundVoteSet) Reset() + func (m *RoundVoteSet) Size() (n int) + func (m *RoundVoteSet) String() string + func (m *RoundVoteSet) Unmarshal(dAtA []byte) error + func (m *RoundVoteSet) XXX_DiscardUnknown() + func (m *RoundVoteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RoundVoteSet) XXX_Merge(src proto.Message) + func (m *RoundVoteSet) XXX_Size() int + func (m *RoundVoteSet) XXX_Unmarshal(b []byte) error + type Step int32 + const Step_COMMIT + const Step_NEW_HEIGHT + const Step_NEW_ROUND + const Step_PRECOMMIT + const Step_PRECOMMIT_WAIT + const Step_PREVOTE + const Step_PREVOTE_WAIT + const Step_PROPOSE + func (Step) EnumDescriptor() ([]byte, []int) + func (x Step) String() string + type TBFTMsg struct + Msg []byte + Type TBFTMsgType + func (*TBFTMsg) Descriptor() ([]byte, []int) + func (*TBFTMsg) ProtoMessage() + func (m *TBFTMsg) GetMsg() []byte + func (m *TBFTMsg) GetType() TBFTMsgType + func (m *TBFTMsg) Marshal() (dAtA []byte, err error) + func (m *TBFTMsg) MarshalTo(dAtA []byte) (int, error) + func (m *TBFTMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TBFTMsg) Reset() + func (m *TBFTMsg) Size() (n int) + func (m *TBFTMsg) String() string + func (m *TBFTMsg) Unmarshal(dAtA []byte) error + func (m *TBFTMsg) XXX_DiscardUnknown() + func (m *TBFTMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TBFTMsg) XXX_Merge(src proto.Message) + func (m *TBFTMsg) XXX_Size() int + func (m *TBFTMsg) XXX_Unmarshal(b []byte) error + type TBFTMsgType int32 + const TBFTMsgType_MSG_FETCH_ROUNDQC + const TBFTMsgType_MSG_PRECOMMIT + const TBFTMsgType_MSG_PREVOTE + const TBFTMsgType_MSG_PROPOSE + const TBFTMsgType_MSG_SEND_ROUND_QC + const TBFTMsgType_MSG_STATE + func (TBFTMsgType) EnumDescriptor() ([]byte, []int) + func (x TBFTMsgType) String() string + type TimeoutInfo struct + Duration int64 + Height uint64 + Round int32 + Step Step + func (*TimeoutInfo) Descriptor() ([]byte, []int) + func (*TimeoutInfo) ProtoMessage() + func (m *TimeoutInfo) GetDuration() int64 + func (m *TimeoutInfo) GetHeight() uint64 + func (m *TimeoutInfo) GetRound() int32 + func (m *TimeoutInfo) GetStep() Step + func (m *TimeoutInfo) Marshal() (dAtA []byte, err error) + func (m *TimeoutInfo) MarshalTo(dAtA []byte) (int, error) + func (m *TimeoutInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TimeoutInfo) Reset() + func (m *TimeoutInfo) Size() (n int) + func (m *TimeoutInfo) String() string + func (m *TimeoutInfo) Unmarshal(dAtA []byte) error + func (m *TimeoutInfo) XXX_DiscardUnknown() + func (m *TimeoutInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TimeoutInfo) XXX_Merge(src proto.Message) + func (m *TimeoutInfo) XXX_Size() int + func (m *TimeoutInfo) XXX_Unmarshal(b []byte) error + type ValidatorSet struct + Validators []string + func (*ValidatorSet) Descriptor() ([]byte, []int) + func (*ValidatorSet) ProtoMessage() + func (m *ValidatorSet) GetValidators() []string + func (m *ValidatorSet) Marshal() (dAtA []byte, err error) + func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error) + func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ValidatorSet) Reset() + func (m *ValidatorSet) Size() (n int) + func (m *ValidatorSet) String() string + func (m *ValidatorSet) Unmarshal(dAtA []byte) error + func (m *ValidatorSet) XXX_DiscardUnknown() + func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ValidatorSet) XXX_Merge(src proto.Message) + func (m *ValidatorSet) XXX_Size() int + func (m *ValidatorSet) XXX_Unmarshal(b []byte) error + type Vote struct + Endorsement *common.EndorsementEntry + Hash []byte + Height uint64 + InvalidTxs []string + Round int32 + Type VoteType + Voter string + func (*Vote) Descriptor() ([]byte, []int) + func (*Vote) ProtoMessage() + func (m *Vote) GetEndorsement() *common.EndorsementEntry + func (m *Vote) GetHash() []byte + func (m *Vote) GetHeight() uint64 + func (m *Vote) GetInvalidTxs() []string + func (m *Vote) GetRound() int32 + func (m *Vote) GetType() VoteType + func (m *Vote) GetVoter() string + func (m *Vote) Marshal() (dAtA []byte, err error) + func (m *Vote) MarshalTo(dAtA []byte) (int, error) + func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Vote) Reset() + func (m *Vote) Size() (n int) + func (m *Vote) String() string + func (m *Vote) Unmarshal(dAtA []byte) error + func (m *Vote) XXX_DiscardUnknown() + func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Vote) XXX_Merge(src proto.Message) + func (m *Vote) XXX_Size() int + func (m *Vote) XXX_Unmarshal(b []byte) error + type VoteSet struct + Height uint64 + Maj23 []byte + Round int32 + Sum uint64 + Type VoteType + Votes map[string]*Vote + VotesByBlock map[string]*BlockVotes + func (*VoteSet) Descriptor() ([]byte, []int) + func (*VoteSet) ProtoMessage() + func (m *VoteSet) GetHeight() uint64 + func (m *VoteSet) GetMaj23() []byte + func (m *VoteSet) GetRound() int32 + func (m *VoteSet) GetSum() uint64 + func (m *VoteSet) GetType() VoteType + func (m *VoteSet) GetVotes() map[string]*Vote + func (m *VoteSet) GetVotesByBlock() map[string]*BlockVotes + func (m *VoteSet) Marshal() (dAtA []byte, err error) + func (m *VoteSet) MarshalTo(dAtA []byte) (int, error) + func (m *VoteSet) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *VoteSet) Reset() + func (m *VoteSet) Size() (n int) + func (m *VoteSet) String() string + func (m *VoteSet) Unmarshal(dAtA []byte) error + func (m *VoteSet) XXX_DiscardUnknown() + func (m *VoteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *VoteSet) XXX_Merge(src proto.Message) + func (m *VoteSet) XXX_Size() int + func (m *VoteSet) XXX_Unmarshal(b []byte) error + type VoteType int32 + const VoteType_VOTE_PRECOMMIT + const VoteType_VOTE_PREVOTE + func (VoteType) EnumDescriptor() ([]byte, []int) + func (x VoteType) String() string + type WalEntry struct + Data []byte + Height uint64 + Type WalEntryType + func (*WalEntry) Descriptor() ([]byte, []int) + func (*WalEntry) ProtoMessage() + func (m *WalEntry) GetData() []byte + func (m *WalEntry) GetHeight() uint64 + func (m *WalEntry) GetType() WalEntryType + func (m *WalEntry) Marshal() (dAtA []byte, err error) + func (m *WalEntry) MarshalTo(dAtA []byte) (int, error) + func (m *WalEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *WalEntry) Reset() + func (m *WalEntry) Size() (n int) + func (m *WalEntry) String() string + func (m *WalEntry) Unmarshal(dAtA []byte) error + func (m *WalEntry) XXX_DiscardUnknown() + func (m *WalEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *WalEntry) XXX_Merge(src proto.Message) + func (m *WalEntry) XXX_Size() int + func (m *WalEntry) XXX_Unmarshal(b []byte) error + type WalEntryType int32 + const WalEntryType_PROPOSAL_ENTRY + const WalEntryType_PROPOSAL_VOTE_ENTRY + const WalEntryType_TIMEOUT_ENTRY + const WalEntryType_VOTE_ENTRY + func (WalEntryType) EnumDescriptor() ([]byte, []int) + func (x WalEntryType) String() string Other modules containing this package chainmaker.org/chainmaker/pb-go/v2