Documentation
¶
Index ¶
- Variables
- type BlockVotes
- func (*BlockVotes) Descriptor() ([]byte, []int)
- 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 (*BlockVotes) ProtoMessage()
- 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
- func (*ConsensusState) Descriptor() ([]byte, []int)
- 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 (*ConsensusState) ProtoMessage()
- 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
- func (*FetchRoundQC) Descriptor() ([]byte, []int)
- func (m *FetchRoundQC) GetId() string
- func (m *FetchRoundQC) GetRound() int32
- func (m *FetchRoundQC) GetSequence() uint64
- 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 (*FetchRoundQC) ProtoMessage()
- 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
- func (*GossipState) Descriptor() ([]byte, []int)
- 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 (*GossipState) ProtoMessage()
- 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
- func (*HeightRoundVoteSet) Descriptor() ([]byte, []int)
- func (m *HeightRoundVoteSet) GetRound() int32
- func (m *HeightRoundVoteSet) GetRoundVoteSets() map[int32]*RoundVoteSet
- func (m *HeightRoundVoteSet) GetSequence() uint64
- 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 (*HeightRoundVoteSet) ProtoMessage()
- 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 NetMsg
- func (*NetMsg) Descriptor() ([]byte, []int)
- func (m *NetMsg) GetPayload() []byte
- func (m *NetMsg) GetTo() string
- func (m *NetMsg) Marshal() (dAtA []byte, err error)
- func (m *NetMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *NetMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NetMsg) ProtoMessage()
- func (m *NetMsg) Reset()
- func (m *NetMsg) Size() (n int)
- func (m *NetMsg) String() string
- func (m *NetMsg) Unmarshal(dAtA []byte) error
- func (m *NetMsg) XXX_DiscardUnknown()
- func (m *NetMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NetMsg) XXX_Merge(src proto.Message)
- func (m *NetMsg) XXX_Size() int
- func (m *NetMsg) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetContent() []byte
- func (m *Proposal) GetKey() []byte
- func (m *Proposal) GetRound() int32
- func (m *Proposal) GetSequence() uint64
- func (m *Proposal) GetSignature() []byte
- 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 (*Proposal) ProtoMessage()
- 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 ProposalVoteRemix
- func (*ProposalVoteRemix) Descriptor() ([]byte, []int)
- func (m *ProposalVoteRemix) GetPrecommitVote() *Vote
- func (m *ProposalVoteRemix) GetProposal() *Proposal
- func (m *ProposalVoteRemix) Marshal() (dAtA []byte, err error)
- func (m *ProposalVoteRemix) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalVoteRemix) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposalVoteRemix) ProtoMessage()
- func (m *ProposalVoteRemix) Reset()
- func (m *ProposalVoteRemix) Size() (n int)
- func (m *ProposalVoteRemix) String() string
- func (m *ProposalVoteRemix) Unmarshal(dAtA []byte) error
- func (m *ProposalVoteRemix) XXX_DiscardUnknown()
- func (m *ProposalVoteRemix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalVoteRemix) XXX_Merge(src proto.Message)
- func (m *ProposalVoteRemix) XXX_Size() int
- func (m *ProposalVoteRemix) XXX_Unmarshal(b []byte) error
- type RoundQC
- func (*RoundQC) Descriptor() ([]byte, []int)
- func (m *RoundQC) GetId() string
- func (m *RoundQC) GetPrecommits() *VoteSet
- func (m *RoundQC) GetRound() int32
- func (m *RoundQC) GetSequence() uint64
- 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 (*RoundQC) ProtoMessage()
- 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
- func (*RoundVoteSet) Descriptor() ([]byte, []int)
- func (m *RoundVoteSet) GetPrecommits() *VoteSet
- func (m *RoundVoteSet) GetPrevotes() *VoteSet
- func (m *RoundVoteSet) GetRound() int32
- func (m *RoundVoteSet) GetSequence() uint64
- 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 (*RoundVoteSet) ProtoMessage()
- 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 Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetRound() int32
- func (m *Status) GetSequence() uint64
- func (m *Status) GetStep() Step
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (m *Status) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (m *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type Step
- type TBFTMsg
- func (*TBFTMsg) Descriptor() ([]byte, []int)
- 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 (*TBFTMsg) ProtoMessage()
- 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
- type TimeoutInfo
- func (*TimeoutInfo) Descriptor() ([]byte, []int)
- func (m *TimeoutInfo) GetDuration() int64
- func (m *TimeoutInfo) GetRound() int32
- func (m *TimeoutInfo) GetSequence() uint64
- 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 (*TimeoutInfo) ProtoMessage()
- 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 VerifyResult
- func (*VerifyResult) Descriptor() ([]byte, []int)
- func (m *VerifyResult) GetCode() VerifyResult_Code
- func (m *VerifyResult) GetMsg() string
- func (m *VerifyResult) GetVerifiedBatchMsg() []byte
- func (m *VerifyResult) Marshal() (dAtA []byte, err error)
- func (m *VerifyResult) MarshalTo(dAtA []byte) (int, error)
- func (m *VerifyResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerifyResult) ProtoMessage()
- func (m *VerifyResult) Reset()
- func (m *VerifyResult) Size() (n int)
- func (m *VerifyResult) String() string
- func (m *VerifyResult) Unmarshal(dAtA []byte) error
- func (m *VerifyResult) XXX_DiscardUnknown()
- func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyResult) XXX_Merge(src proto.Message)
- func (m *VerifyResult) XXX_Size() int
- func (m *VerifyResult) XXX_Unmarshal(b []byte) error
- type VerifyResult_Code
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetHash() []byte
- func (m *Vote) GetInvalidTxs() []string
- func (m *Vote) GetRound() int32
- func (m *Vote) GetSequence() uint64
- func (m *Vote) GetSignature() []byte
- 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 (*Vote) ProtoMessage()
- 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
- func (*VoteSet) Descriptor() ([]byte, []int)
- func (m *VoteSet) GetMaj23() []byte
- func (m *VoteSet) GetRound() int32
- func (m *VoteSet) GetSequence() uint64
- 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 (*VoteSet) ProtoMessage()
- 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
- type WalEntry
- func (*WalEntry) Descriptor() ([]byte, []int)
- func (m *WalEntry) GetData() []byte
- func (m *WalEntry) GetSequence() 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 (*WalEntry) ProtoMessage()
- 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
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTbft = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTbft = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTbft = fmt.Errorf("proto: unexpected end of group") )
var Step_name = map[int32]string{
0: "NEW_HEIGHT",
1: "NEW_ROUND",
2: "PROPOSE",
3: "PREVOTE",
4: "PREVOTE_WAIT",
5: "PRECOMMIT",
6: "PRECOMMIT_WAIT",
7: "COMMIT",
}
var Step_value = map[string]int32{
"NEW_HEIGHT": 0,
"NEW_ROUND": 1,
"PROPOSE": 2,
"PREVOTE": 3,
"PREVOTE_WAIT": 4,
"PRECOMMIT": 5,
"PRECOMMIT_WAIT": 6,
"COMMIT": 7,
}
var TBFTMsgType_name = map[int32]string{
0: "MSG_PROPOSE",
1: "MSG_PREVOTE",
2: "MSG_PRECOMMIT",
3: "MSG_STATE",
4: "MSG_FETCH_ROUNDQC",
5: "MSG_SEND_ROUND_QC",
}
var TBFTMsgType_value = map[string]int32{
"MSG_PROPOSE": 0,
"MSG_PREVOTE": 1,
"MSG_PRECOMMIT": 2,
"MSG_STATE": 3,
"MSG_FETCH_ROUNDQC": 4,
"MSG_SEND_ROUND_QC": 5,
}
var VerifyResult_Code_name = map[int32]string{
0: "VerifyResult_SUCCESS",
1: "VerifyResult_FAIL",
}
var VerifyResult_Code_value = map[string]int32{
"VerifyResult_SUCCESS": 0,
"VerifyResult_FAIL": 1,
}
Functions ¶
This section is empty.
Types ¶
type BlockVotes ¶
type BlockVotes struct { Votes map[string]*Vote `` /* 151-byte string literal not displayed */ Sum uint64 `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"` }
BlockVotes represents votes as key-value form
func (*BlockVotes) Descriptor ¶
func (*BlockVotes) Descriptor() ([]byte, []int)
func (*BlockVotes) GetSum ¶
func (m *BlockVotes) GetSum() uint64
func (*BlockVotes) GetVotes ¶
func (m *BlockVotes) GetVotes() map[string]*Vote
func (*BlockVotes) Marshal ¶
func (m *BlockVotes) Marshal() (dAtA []byte, err error)
func (*BlockVotes) MarshalTo ¶
func (m *BlockVotes) MarshalTo(dAtA []byte) (int, error)
func (*BlockVotes) MarshalToSizedBuffer ¶
func (m *BlockVotes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockVotes) ProtoMessage ¶
func (*BlockVotes) ProtoMessage()
func (*BlockVotes) Reset ¶
func (m *BlockVotes) Reset()
func (*BlockVotes) Size ¶
func (m *BlockVotes) Size() (n int)
func (*BlockVotes) String ¶
func (m *BlockVotes) String() string
func (*BlockVotes) Unmarshal ¶
func (m *BlockVotes) Unmarshal(dAtA []byte) error
func (*BlockVotes) XXX_DiscardUnknown ¶
func (m *BlockVotes) XXX_DiscardUnknown()
func (*BlockVotes) XXX_Marshal ¶
func (m *BlockVotes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockVotes) XXX_Merge ¶
func (m *BlockVotes) XXX_Merge(src proto.Message)
func (*BlockVotes) XXX_Size ¶
func (m *BlockVotes) XXX_Size() int
func (*BlockVotes) XXX_Unmarshal ¶
func (m *BlockVotes) XXX_Unmarshal(b []byte) error
type ConsensusState ¶
type ConsensusState struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Step Step `protobuf:"varint,4,opt,name=step,proto3,enum=tbft_engine.Step" json:"step,omitempty"` Proposal *Proposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` VerifingProposal *Proposal `protobuf:"bytes,6,opt,name=verifing_proposal,json=verifingProposal,proto3" json:"verifing_proposal,omitempty"` LockedProposal *Proposal `protobuf:"bytes,7,opt,name=locked_proposal,json=lockedProposal,proto3" json:"locked_proposal,omitempty"` ValidProposal *Proposal `protobuf:"bytes,8,opt,name=valid_proposal,json=validProposal,proto3" json:"valid_proposal,omitempty"` HeightRoundVoteSet *HeightRoundVoteSet `protobuf:"bytes,9,opt,name=height_round_vote_set,json=heightRoundVoteSet,proto3" json:"height_round_vote_set,omitempty"` }
ConsensusState represents the state of tbft instance
func (*ConsensusState) Descriptor ¶
func (*ConsensusState) Descriptor() ([]byte, []int)
func (*ConsensusState) GetHeight ¶
func (m *ConsensusState) GetHeight() uint64
func (*ConsensusState) GetHeightRoundVoteSet ¶
func (m *ConsensusState) GetHeightRoundVoteSet() *HeightRoundVoteSet
func (*ConsensusState) GetId ¶
func (m *ConsensusState) GetId() string
func (*ConsensusState) GetLockedProposal ¶
func (m *ConsensusState) GetLockedProposal() *Proposal
func (*ConsensusState) GetProposal ¶
func (m *ConsensusState) GetProposal() *Proposal
func (*ConsensusState) GetRound ¶
func (m *ConsensusState) GetRound() int32
func (*ConsensusState) GetStep ¶
func (m *ConsensusState) GetStep() Step
func (*ConsensusState) GetValidProposal ¶
func (m *ConsensusState) GetValidProposal() *Proposal
func (*ConsensusState) GetVerifingProposal ¶
func (m *ConsensusState) GetVerifingProposal() *Proposal
func (*ConsensusState) Marshal ¶
func (m *ConsensusState) Marshal() (dAtA []byte, err error)
func (*ConsensusState) MarshalTo ¶
func (m *ConsensusState) MarshalTo(dAtA []byte) (int, error)
func (*ConsensusState) MarshalToSizedBuffer ¶
func (m *ConsensusState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusState) ProtoMessage ¶
func (*ConsensusState) ProtoMessage()
func (*ConsensusState) Reset ¶
func (m *ConsensusState) Reset()
func (*ConsensusState) Size ¶
func (m *ConsensusState) Size() (n int)
func (*ConsensusState) String ¶
func (m *ConsensusState) String() string
func (*ConsensusState) Unmarshal ¶
func (m *ConsensusState) Unmarshal(dAtA []byte) error
func (*ConsensusState) XXX_DiscardUnknown ¶
func (m *ConsensusState) XXX_DiscardUnknown()
func (*ConsensusState) XXX_Marshal ¶
func (m *ConsensusState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusState) XXX_Merge ¶
func (m *ConsensusState) XXX_Merge(src proto.Message)
func (*ConsensusState) XXX_Size ¶
func (m *ConsensusState) XXX_Size() int
func (*ConsensusState) XXX_Unmarshal ¶
func (m *ConsensusState) XXX_Unmarshal(b []byte) error
type FetchRoundQC ¶
type FetchRoundQC struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` }
FetchRoundQC defined a fetch roundQC request which can be gossiped to other node
func (*FetchRoundQC) Descriptor ¶
func (*FetchRoundQC) Descriptor() ([]byte, []int)
func (*FetchRoundQC) GetId ¶
func (m *FetchRoundQC) GetId() string
func (*FetchRoundQC) GetRound ¶
func (m *FetchRoundQC) GetRound() int32
func (*FetchRoundQC) GetSequence ¶
func (m *FetchRoundQC) GetSequence() uint64
func (*FetchRoundQC) Marshal ¶
func (m *FetchRoundQC) Marshal() (dAtA []byte, err error)
func (*FetchRoundQC) MarshalTo ¶
func (m *FetchRoundQC) MarshalTo(dAtA []byte) (int, error)
func (*FetchRoundQC) MarshalToSizedBuffer ¶
func (m *FetchRoundQC) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FetchRoundQC) ProtoMessage ¶
func (*FetchRoundQC) ProtoMessage()
func (*FetchRoundQC) Reset ¶
func (m *FetchRoundQC) Reset()
func (*FetchRoundQC) Size ¶
func (m *FetchRoundQC) Size() (n int)
func (*FetchRoundQC) String ¶
func (m *FetchRoundQC) String() string
func (*FetchRoundQC) Unmarshal ¶
func (m *FetchRoundQC) Unmarshal(dAtA []byte) error
func (*FetchRoundQC) XXX_DiscardUnknown ¶
func (m *FetchRoundQC) XXX_DiscardUnknown()
func (*FetchRoundQC) XXX_Marshal ¶
func (m *FetchRoundQC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FetchRoundQC) XXX_Merge ¶
func (m *FetchRoundQC) XXX_Merge(src proto.Message)
func (*FetchRoundQC) XXX_Size ¶
func (m *FetchRoundQC) XXX_Size() int
func (*FetchRoundQC) XXX_Unmarshal ¶
func (m *FetchRoundQC) XXX_Unmarshal(b []byte) error
type GossipState ¶
type GossipState struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Step Step `protobuf:"varint,4,opt,name=step,proto3,enum=tbft_engine.Step" json:"step,omitempty"` Proposal []byte `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` VerifingProposal []byte `protobuf:"bytes,6,opt,name=verifing_proposal,json=verifingProposal,proto3" json:"verifing_proposal,omitempty"` RoundVoteSet *RoundVoteSet `protobuf:"bytes,7,opt,name=round_vote_set,json=roundVoteSet,proto3" json:"round_vote_set,omitempty"` }
GossipState represents the state of tbft instance
func (*GossipState) Descriptor ¶
func (*GossipState) Descriptor() ([]byte, []int)
func (*GossipState) GetHeight ¶
func (m *GossipState) GetHeight() uint64
func (*GossipState) GetId ¶
func (m *GossipState) GetId() string
func (*GossipState) GetProposal ¶
func (m *GossipState) GetProposal() []byte
func (*GossipState) GetRound ¶
func (m *GossipState) GetRound() int32
func (*GossipState) GetRoundVoteSet ¶
func (m *GossipState) GetRoundVoteSet() *RoundVoteSet
func (*GossipState) GetStep ¶
func (m *GossipState) GetStep() Step
func (*GossipState) GetVerifingProposal ¶
func (m *GossipState) GetVerifingProposal() []byte
func (*GossipState) Marshal ¶
func (m *GossipState) Marshal() (dAtA []byte, err error)
func (*GossipState) MarshalTo ¶
func (m *GossipState) MarshalTo(dAtA []byte) (int, error)
func (*GossipState) MarshalToSizedBuffer ¶
func (m *GossipState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GossipState) ProtoMessage ¶
func (*GossipState) ProtoMessage()
func (*GossipState) Reset ¶
func (m *GossipState) Reset()
func (*GossipState) Size ¶
func (m *GossipState) Size() (n int)
func (*GossipState) String ¶
func (m *GossipState) String() string
func (*GossipState) Unmarshal ¶
func (m *GossipState) Unmarshal(dAtA []byte) error
func (*GossipState) XXX_DiscardUnknown ¶
func (m *GossipState) XXX_DiscardUnknown()
func (*GossipState) XXX_Marshal ¶
func (m *GossipState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GossipState) XXX_Merge ¶
func (m *GossipState) XXX_Merge(src proto.Message)
func (*GossipState) XXX_Size ¶
func (m *GossipState) XXX_Size() int
func (*GossipState) XXX_Unmarshal ¶
func (m *GossipState) XXX_Unmarshal(b []byte) error
type HeightRoundVoteSet ¶
type HeightRoundVoteSet struct { Sequence uint64 `protobuf:"varint,1,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` RoundVoteSets map[int32]*RoundVoteSet `` /* 191-byte string literal not displayed */ }
HeightRoundVoteSet represents voteSet of a `height`
func (*HeightRoundVoteSet) Descriptor ¶
func (*HeightRoundVoteSet) Descriptor() ([]byte, []int)
func (*HeightRoundVoteSet) GetRound ¶
func (m *HeightRoundVoteSet) GetRound() int32
func (*HeightRoundVoteSet) GetRoundVoteSets ¶
func (m *HeightRoundVoteSet) GetRoundVoteSets() map[int32]*RoundVoteSet
func (*HeightRoundVoteSet) GetSequence ¶
func (m *HeightRoundVoteSet) GetSequence() uint64
func (*HeightRoundVoteSet) Marshal ¶
func (m *HeightRoundVoteSet) Marshal() (dAtA []byte, err error)
func (*HeightRoundVoteSet) MarshalTo ¶
func (m *HeightRoundVoteSet) MarshalTo(dAtA []byte) (int, error)
func (*HeightRoundVoteSet) MarshalToSizedBuffer ¶
func (m *HeightRoundVoteSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeightRoundVoteSet) ProtoMessage ¶
func (*HeightRoundVoteSet) ProtoMessage()
func (*HeightRoundVoteSet) Reset ¶
func (m *HeightRoundVoteSet) Reset()
func (*HeightRoundVoteSet) Size ¶
func (m *HeightRoundVoteSet) Size() (n int)
func (*HeightRoundVoteSet) String ¶
func (m *HeightRoundVoteSet) String() string
func (*HeightRoundVoteSet) Unmarshal ¶
func (m *HeightRoundVoteSet) Unmarshal(dAtA []byte) error
func (*HeightRoundVoteSet) XXX_DiscardUnknown ¶
func (m *HeightRoundVoteSet) XXX_DiscardUnknown()
func (*HeightRoundVoteSet) XXX_Marshal ¶
func (m *HeightRoundVoteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeightRoundVoteSet) XXX_Merge ¶
func (m *HeightRoundVoteSet) XXX_Merge(src proto.Message)
func (*HeightRoundVoteSet) XXX_Size ¶
func (m *HeightRoundVoteSet) XXX_Size() int
func (*HeightRoundVoteSet) XXX_Unmarshal ¶
func (m *HeightRoundVoteSet) XXX_Unmarshal(b []byte) error
type NetMsg ¶
type NetMsg struct { // payload of the message Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // nodeId To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` }
net message
func (*NetMsg) MarshalToSizedBuffer ¶
func (*NetMsg) XXX_Marshal ¶
type Proposal ¶
type Proposal struct { Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Content []byte `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"` Key []byte `protobuf:"bytes,5,opt,name=Key,proto3" json:"Key,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"Signature,omitempty"` }
Proposal defined a consesensus proposal which can be gossiped to other node and can be serilized for persistent store.
func (*Proposal) MarshalToSizedBuffer ¶
func (*Proposal) XXX_Marshal ¶
type ProposalVoteRemix ¶
type ProposalVoteRemix struct { Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` PrecommitVote *Vote `protobuf:"bytes,2,opt,name=precommitVote,proto3" json:"precommitVote,omitempty"` }
func (*ProposalVoteRemix) Descriptor ¶
func (*ProposalVoteRemix) Descriptor() ([]byte, []int)
func (*ProposalVoteRemix) GetPrecommitVote ¶
func (m *ProposalVoteRemix) GetPrecommitVote() *Vote
func (*ProposalVoteRemix) GetProposal ¶
func (m *ProposalVoteRemix) GetProposal() *Proposal
func (*ProposalVoteRemix) Marshal ¶
func (m *ProposalVoteRemix) Marshal() (dAtA []byte, err error)
func (*ProposalVoteRemix) MarshalTo ¶
func (m *ProposalVoteRemix) MarshalTo(dAtA []byte) (int, error)
func (*ProposalVoteRemix) MarshalToSizedBuffer ¶
func (m *ProposalVoteRemix) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalVoteRemix) ProtoMessage ¶
func (*ProposalVoteRemix) ProtoMessage()
func (*ProposalVoteRemix) Reset ¶
func (m *ProposalVoteRemix) Reset()
func (*ProposalVoteRemix) Size ¶
func (m *ProposalVoteRemix) Size() (n int)
func (*ProposalVoteRemix) String ¶
func (m *ProposalVoteRemix) String() string
func (*ProposalVoteRemix) Unmarshal ¶
func (m *ProposalVoteRemix) Unmarshal(dAtA []byte) error
func (*ProposalVoteRemix) XXX_DiscardUnknown ¶
func (m *ProposalVoteRemix) XXX_DiscardUnknown()
func (*ProposalVoteRemix) XXX_Marshal ¶
func (m *ProposalVoteRemix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalVoteRemix) XXX_Merge ¶
func (m *ProposalVoteRemix) XXX_Merge(src proto.Message)
func (*ProposalVoteRemix) XXX_Size ¶
func (m *ProposalVoteRemix) XXX_Size() int
func (*ProposalVoteRemix) XXX_Unmarshal ¶
func (m *ProposalVoteRemix) XXX_Unmarshal(b []byte) error
type RoundQC ¶
type RoundQC struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Precommits *VoteSet `protobuf:"bytes,4,opt,name=precommits,proto3" json:"precommits,omitempty"` }
RoundQC represents the max round of qc
func (*RoundQC) MarshalToSizedBuffer ¶
func (*RoundQC) XXX_Marshal ¶
type RoundVoteSet ¶
type RoundVoteSet struct { Sequence uint64 `protobuf:"varint,1,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Prevotes *VoteSet `protobuf:"bytes,3,opt,name=prevotes,proto3" json:"prevotes,omitempty"` Precommits *VoteSet `protobuf:"bytes,4,opt,name=precommits,proto3" json:"precommits,omitempty"` }
RoundVoteSet represents voteSet of a `round`
func (*RoundVoteSet) Descriptor ¶
func (*RoundVoteSet) Descriptor() ([]byte, []int)
func (*RoundVoteSet) GetPrecommits ¶
func (m *RoundVoteSet) GetPrecommits() *VoteSet
func (*RoundVoteSet) GetPrevotes ¶
func (m *RoundVoteSet) GetPrevotes() *VoteSet
func (*RoundVoteSet) GetRound ¶
func (m *RoundVoteSet) GetRound() int32
func (*RoundVoteSet) GetSequence ¶
func (m *RoundVoteSet) GetSequence() uint64
func (*RoundVoteSet) Marshal ¶
func (m *RoundVoteSet) Marshal() (dAtA []byte, err error)
func (*RoundVoteSet) MarshalTo ¶
func (m *RoundVoteSet) MarshalTo(dAtA []byte) (int, error)
func (*RoundVoteSet) MarshalToSizedBuffer ¶
func (m *RoundVoteSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoundVoteSet) ProtoMessage ¶
func (*RoundVoteSet) ProtoMessage()
func (*RoundVoteSet) Reset ¶
func (m *RoundVoteSet) Reset()
func (*RoundVoteSet) Size ¶
func (m *RoundVoteSet) Size() (n int)
func (*RoundVoteSet) String ¶
func (m *RoundVoteSet) String() string
func (*RoundVoteSet) Unmarshal ¶
func (m *RoundVoteSet) Unmarshal(dAtA []byte) error
func (*RoundVoteSet) XXX_DiscardUnknown ¶
func (m *RoundVoteSet) XXX_DiscardUnknown()
func (*RoundVoteSet) XXX_Marshal ¶
func (m *RoundVoteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoundVoteSet) XXX_Merge ¶
func (m *RoundVoteSet) XXX_Merge(src proto.Message)
func (*RoundVoteSet) XXX_Size ¶
func (m *RoundVoteSet) XXX_Size() int
func (*RoundVoteSet) XXX_Unmarshal ¶
func (m *RoundVoteSet) XXX_Unmarshal(b []byte) error
type Status ¶
type Status struct { Sequence uint64 `protobuf:"varint,1,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Step Step `protobuf:"varint,3,opt,name=step,proto3,enum=tbft_engine.Step" json:"step,omitempty"` }
Status represents the consensus state
func (*Status) MarshalToSizedBuffer ¶
func (*Status) XXX_Marshal ¶
type TBFTMsg ¶
type TBFTMsg struct { Type TBFTMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tbft_engine.TBFTMsgType" json:"type,omitempty"` Msg []byte `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` }
func (*TBFTMsg) GetType ¶
func (m *TBFTMsg) GetType() TBFTMsgType
func (*TBFTMsg) MarshalToSizedBuffer ¶
func (*TBFTMsg) XXX_Marshal ¶
type TBFTMsgType ¶
type TBFTMsgType int32
TBFTMsgType defines different type message in tbft
const ( TBFTMsgType_MSG_PROPOSE TBFTMsgType = 0 TBFTMsgType_MSG_PREVOTE TBFTMsgType = 1 TBFTMsgType_MSG_PRECOMMIT TBFTMsgType = 2 TBFTMsgType_MSG_STATE TBFTMsgType = 3 TBFTMsgType_MSG_FETCH_ROUNDQC TBFTMsgType = 4 TBFTMsgType_MSG_SEND_ROUND_QC TBFTMsgType = 5 )
func (TBFTMsgType) EnumDescriptor ¶
func (TBFTMsgType) EnumDescriptor() ([]byte, []int)
func (TBFTMsgType) String ¶
func (x TBFTMsgType) String() string
type TimeoutInfo ¶
type TimeoutInfo struct { Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Step Step `protobuf:"varint,4,opt,name=step,proto3,enum=tbft_engine.Step" json:"step,omitempty"` }
TimeoutInfo represents the timeout event
func (*TimeoutInfo) Descriptor ¶
func (*TimeoutInfo) Descriptor() ([]byte, []int)
func (*TimeoutInfo) GetDuration ¶
func (m *TimeoutInfo) GetDuration() int64
func (*TimeoutInfo) GetRound ¶
func (m *TimeoutInfo) GetRound() int32
func (*TimeoutInfo) GetSequence ¶
func (m *TimeoutInfo) GetSequence() uint64
func (*TimeoutInfo) GetStep ¶
func (m *TimeoutInfo) GetStep() Step
func (*TimeoutInfo) Marshal ¶
func (m *TimeoutInfo) Marshal() (dAtA []byte, err error)
func (*TimeoutInfo) MarshalTo ¶
func (m *TimeoutInfo) MarshalTo(dAtA []byte) (int, error)
func (*TimeoutInfo) MarshalToSizedBuffer ¶
func (m *TimeoutInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimeoutInfo) ProtoMessage ¶
func (*TimeoutInfo) ProtoMessage()
func (*TimeoutInfo) Reset ¶
func (m *TimeoutInfo) Reset()
func (*TimeoutInfo) Size ¶
func (m *TimeoutInfo) Size() (n int)
func (*TimeoutInfo) String ¶
func (m *TimeoutInfo) String() string
func (*TimeoutInfo) Unmarshal ¶
func (m *TimeoutInfo) Unmarshal(dAtA []byte) error
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 VerifyResult ¶
type VerifyResult struct { VerifiedBatchMsg []byte `protobuf:"bytes,1,opt,name=VerifiedBatchMsg,proto3" json:"VerifiedBatchMsg,omitempty"` Code VerifyResult_Code `protobuf:"varint,2,opt,name=Code,proto3,enum=tbft_engine.VerifyResult_Code" json:"Code,omitempty"` Msg string `protobuf:"bytes,3,opt,name=Msg,proto3" json:"Msg,omitempty"` }
VerifyResult represents the verify result
func (*VerifyResult) Descriptor ¶
func (*VerifyResult) Descriptor() ([]byte, []int)
func (*VerifyResult) GetCode ¶
func (m *VerifyResult) GetCode() VerifyResult_Code
func (*VerifyResult) GetMsg ¶
func (m *VerifyResult) GetMsg() string
func (*VerifyResult) GetVerifiedBatchMsg ¶
func (m *VerifyResult) GetVerifiedBatchMsg() []byte
func (*VerifyResult) Marshal ¶
func (m *VerifyResult) Marshal() (dAtA []byte, err error)
func (*VerifyResult) MarshalTo ¶
func (m *VerifyResult) MarshalTo(dAtA []byte) (int, error)
func (*VerifyResult) MarshalToSizedBuffer ¶
func (m *VerifyResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerifyResult) ProtoMessage ¶
func (*VerifyResult) ProtoMessage()
func (*VerifyResult) Reset ¶
func (m *VerifyResult) Reset()
func (*VerifyResult) Size ¶
func (m *VerifyResult) Size() (n int)
func (*VerifyResult) String ¶
func (m *VerifyResult) String() string
func (*VerifyResult) Unmarshal ¶
func (m *VerifyResult) Unmarshal(dAtA []byte) error
func (*VerifyResult) XXX_DiscardUnknown ¶
func (m *VerifyResult) XXX_DiscardUnknown()
func (*VerifyResult) XXX_Marshal ¶
func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyResult) XXX_Merge ¶
func (m *VerifyResult) XXX_Merge(src proto.Message)
func (*VerifyResult) XXX_Size ¶
func (m *VerifyResult) XXX_Size() int
func (*VerifyResult) XXX_Unmarshal ¶
func (m *VerifyResult) XXX_Unmarshal(b []byte) error
type VerifyResult_Code ¶
type VerifyResult_Code int32
VerifyResult_Code represents the Result_Code of verifying proposal
const ( VerifyResult_Code_VerifyResult_SUCCESS VerifyResult_Code = 0 VerifyResult_Code_VerifyResult_FAIL VerifyResult_Code = 1 )
func (VerifyResult_Code) EnumDescriptor ¶
func (VerifyResult_Code) EnumDescriptor() ([]byte, []int)
func (VerifyResult_Code) String ¶
func (x VerifyResult_Code) String() string
type Vote ¶
type Vote struct { Type VoteType `protobuf:"varint,1,opt,name=type,proto3,enum=tbft_engine.VoteType" json:"type,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` Sequence uint64 `protobuf:"varint,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` Hash []byte `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"Signature,omitempty"` InvalidTxs []string `protobuf:"bytes,7,rep,name=invalidTxs,proto3" json:"invalidTxs,omitempty"` }
Vote represents a tbft vote
type VoteSet ¶
type VoteSet struct { Type VoteType `protobuf:"varint,1,opt,name=type,proto3,enum=tbft_engine.VoteType" json:"type,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Sum uint64 `protobuf:"varint,4,opt,name=sum,proto3" json:"sum,omitempty"` Maj23 []byte `protobuf:"bytes,5,opt,name=maj23,proto3" json:"maj23,omitempty"` Votes map[string]*Vote `` /* 151-byte string literal not displayed */ VotesByBlock map[string]*BlockVotes `` /* 187-byte string literal not displayed */ }
VoteSet represents a set of vote at `height` and `round`
func (*VoteSet) GetVotesByBlock ¶
func (m *VoteSet) GetVotesByBlock() map[string]*BlockVotes
func (*VoteSet) MarshalToSizedBuffer ¶
func (*VoteSet) XXX_Marshal ¶
type WalEntry ¶
type WalEntry struct { Sequence uint64 `protobuf:"varint,1,opt,name=Sequence,proto3" json:"Sequence,omitempty"` // log entry type Type WalEntryType `protobuf:"varint,2,opt,name=type,proto3,enum=tbft_engine.WalEntryType" json:"type,omitempty"` // data of entry Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
WalEntry represents the log entry in Wal
func (*WalEntry) GetType ¶
func (m *WalEntry) GetType() WalEntryType
func (*WalEntry) MarshalToSizedBuffer ¶
func (*WalEntry) XXX_Marshal ¶
type WalEntryType ¶
type WalEntryType int32
WalEntryType represents different types of entries in Wal
const ( WalEntryType_TIMEOUT_ENTRY WalEntryType = 0 WalEntryType_PROPOSAL_ENTRY WalEntryType = 1 WalEntryType_VOTE_ENTRY WalEntryType = 2 WalEntryType_PROPOSAL_VOTE_ENTRY WalEntryType = 3 )
func (WalEntryType) EnumDescriptor ¶
func (WalEntryType) EnumDescriptor() ([]byte, []int)
func (WalEntryType) String ¶
func (x WalEntryType) String() string