Documentation ¶
Index ¶
- Variables
- type CanonicalDataHash
- func (*CanonicalDataHash) Descriptor() ([]byte, []int)
- func (m *CanonicalDataHash) GetHash() []byte
- func (m *CanonicalDataHash) Marshal() (dAtA []byte, err error)
- func (m *CanonicalDataHash) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalDataHash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalDataHash) ProtoMessage()
- func (m *CanonicalDataHash) Reset()
- func (m *CanonicalDataHash) Size() (n int)
- func (m *CanonicalDataHash) String() string
- func (m *CanonicalDataHash) Unmarshal(dAtA []byte) error
- func (m *CanonicalDataHash) XXX_DiscardUnknown()
- func (m *CanonicalDataHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalDataHash) XXX_Merge(src proto.Message)
- func (m *CanonicalDataHash) XXX_Size() int
- func (m *CanonicalDataHash) XXX_Unmarshal(b []byte) error
- type CanonicalProposal
- func (*CanonicalProposal) Descriptor() ([]byte, []int)
- func (m *CanonicalProposal) GetChainID() string
- func (m *CanonicalProposal) GetDataHash() *CanonicalDataHash
- func (m *CanonicalProposal) GetHeight() int64
- func (m *CanonicalProposal) GetPOLRound() int64
- func (m *CanonicalProposal) GetRound() int64
- func (m *CanonicalProposal) GetTimestamp() time.Time
- func (m *CanonicalProposal) GetType() SignedMsgType
- func (m *CanonicalProposal) Marshal() (dAtA []byte, err error)
- func (m *CanonicalProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalProposal) ProtoMessage()
- func (m *CanonicalProposal) Reset()
- func (m *CanonicalProposal) Size() (n int)
- func (m *CanonicalProposal) String() string
- func (m *CanonicalProposal) Unmarshal(dAtA []byte) error
- func (m *CanonicalProposal) XXX_DiscardUnknown()
- func (m *CanonicalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalProposal) XXX_Merge(src proto.Message)
- func (m *CanonicalProposal) XXX_Size() int
- func (m *CanonicalProposal) XXX_Unmarshal(b []byte) error
- type CanonicalVote
- func (*CanonicalVote) Descriptor() ([]byte, []int)
- func (m *CanonicalVote) GetChainID() string
- func (m *CanonicalVote) GetDataHash() *CanonicalDataHash
- func (m *CanonicalVote) GetHeight() int64
- func (m *CanonicalVote) GetRound() int64
- func (m *CanonicalVote) GetTimestamp() time.Time
- func (m *CanonicalVote) GetType() SignedMsgType
- func (m *CanonicalVote) Marshal() (dAtA []byte, err error)
- func (m *CanonicalVote) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalVote) ProtoMessage()
- func (m *CanonicalVote) Reset()
- func (m *CanonicalVote) Size() (n int)
- func (m *CanonicalVote) String() string
- func (m *CanonicalVote) Unmarshal(dAtA []byte) error
- func (m *CanonicalVote) XXX_DiscardUnknown()
- func (m *CanonicalVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalVote) XXX_Merge(src proto.Message)
- func (m *CanonicalVote) XXX_Size() int
- func (m *CanonicalVote) XXX_Unmarshal(b []byte) error
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)
- func (m *Commit) GetDataHash() DataHash
- func (m *Commit) GetHeight() int64
- func (m *Commit) GetRound() int32
- func (m *Commit) GetSignatures() []CommitSig
- func (m *Commit) Marshal() (dAtA []byte, err error)
- func (m *Commit) MarshalTo(dAtA []byte) (int, error)
- func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Commit) ProtoMessage()
- func (m *Commit) Reset()
- func (m *Commit) Size() (n int)
- func (m *Commit) String() string
- func (m *Commit) Unmarshal(dAtA []byte) error
- func (m *Commit) XXX_DiscardUnknown()
- func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Commit) XXX_Merge(src proto.Message)
- func (m *Commit) XXX_Size() int
- func (m *Commit) XXX_Unmarshal(b []byte) error
- type CommitSig
- func (*CommitSig) Descriptor() ([]byte, []int)
- func (m *CommitSig) GetDataHashFlag() DataHashFlag
- func (m *CommitSig) GetSignature() []byte
- func (m *CommitSig) GetTimestamp() time.Time
- func (m *CommitSig) GetValidatorAddress() []byte
- func (m *CommitSig) Marshal() (dAtA []byte, err error)
- func (m *CommitSig) MarshalTo(dAtA []byte) (int, error)
- func (m *CommitSig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CommitSig) ProtoMessage()
- func (m *CommitSig) Reset()
- func (m *CommitSig) Size() (n int)
- func (m *CommitSig) String() string
- func (m *CommitSig) Unmarshal(dAtA []byte) error
- func (m *CommitSig) XXX_DiscardUnknown()
- func (m *CommitSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommitSig) XXX_Merge(src proto.Message)
- func (m *CommitSig) XXX_Size() int
- func (m *CommitSig) XXX_Unmarshal(b []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetTxs() [][]byte
- func (m *Data) Marshal() (dAtA []byte, err error)
- func (m *Data) MarshalTo(dAtA []byte) (int, error)
- func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) Size() (n int)
- func (m *Data) String() string
- func (m *Data) Unmarshal(dAtA []byte) error
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type DataHash
- func (*DataHash) Descriptor() ([]byte, []int)
- func (m *DataHash) GetHash() []byte
- func (m *DataHash) Marshal() (dAtA []byte, err error)
- func (m *DataHash) MarshalTo(dAtA []byte) (int, error)
- func (m *DataHash) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataHash) ProtoMessage()
- func (m *DataHash) Reset()
- func (m *DataHash) Size() (n int)
- func (m *DataHash) String() string
- func (m *DataHash) Unmarshal(dAtA []byte) error
- func (m *DataHash) XXX_DiscardUnknown()
- func (m *DataHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataHash) XXX_Merge(src proto.Message)
- func (m *DataHash) XXX_Size() int
- func (m *DataHash) XXX_Unmarshal(b []byte) error
- type DataHashFlag
- type HasVote
- func (*HasVote) Descriptor() ([]byte, []int)
- func (m *HasVote) GetHeight() int64
- func (m *HasVote) GetIndex() int32
- func (m *HasVote) GetRound() int32
- func (m *HasVote) GetType() SignedMsgType
- func (m *HasVote) Marshal() (dAtA []byte, err error)
- func (m *HasVote) MarshalTo(dAtA []byte) (int, error)
- func (m *HasVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HasVote) ProtoMessage()
- func (m *HasVote) Reset()
- func (m *HasVote) Size() (n int)
- func (m *HasVote) String() string
- func (m *HasVote) Unmarshal(dAtA []byte) error
- func (m *HasVote) XXX_DiscardUnknown()
- func (m *HasVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HasVote) XXX_Merge(src proto.Message)
- func (m *HasVote) XXX_Size() int
- func (m *HasVote) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetAppHash() []byte
- func (m *Header) GetChainID() string
- func (m *Header) GetConsensusHash() []byte
- func (m *Header) GetDataHash() []byte
- func (m *Header) GetEvidenceHash() []byte
- func (m *Header) GetHeight() int64
- func (m *Header) GetLastCommitHash() []byte
- func (m *Header) GetLastDataHash() DataHash
- func (m *Header) GetLastResultsHash() []byte
- func (m *Header) GetNextValidatorsHash() []byte
- func (m *Header) GetProposerAddress() []byte
- func (m *Header) GetTime() time.Time
- func (m *Header) GetValidatorsHash() []byte
- func (m *Header) GetVersion() version.Consensus
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetProposal() *Proposal
- func (m *Message) GetSum() isMessage_Sum
- func (m *Message) GetVote() *Vote
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (*Message) XXX_OneofWrappers() []interface{}
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Proposal
- type Message_Vote
- type NewRoundStep
- func (*NewRoundStep) Descriptor() ([]byte, []int)
- func (m *NewRoundStep) GetHeight() int64
- func (m *NewRoundStep) GetLastCommitRound() int32
- func (m *NewRoundStep) GetRound() int32
- func (m *NewRoundStep) GetSecondsSinceStartTime() int64
- func (m *NewRoundStep) GetStep() uint32
- func (m *NewRoundStep) Marshal() (dAtA []byte, err error)
- func (m *NewRoundStep) MarshalTo(dAtA []byte) (int, error)
- func (m *NewRoundStep) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NewRoundStep) ProtoMessage()
- func (m *NewRoundStep) Reset()
- func (m *NewRoundStep) Size() (n int)
- func (m *NewRoundStep) String() string
- func (m *NewRoundStep) Unmarshal(dAtA []byte) error
- func (m *NewRoundStep) XXX_DiscardUnknown()
- func (m *NewRoundStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewRoundStep) XXX_Merge(src proto.Message)
- func (m *NewRoundStep) XXX_Size() int
- func (m *NewRoundStep) XXX_Unmarshal(b []byte) error
- type NewValidBlock
- func (*NewValidBlock) Descriptor() ([]byte, []int)
- func (m *NewValidBlock) GetBlockParts() *bits.BitArray
- func (m *NewValidBlock) GetHeight() int64
- func (m *NewValidBlock) GetIsCommit() bool
- func (m *NewValidBlock) GetRound() int32
- func (m *NewValidBlock) Marshal() (dAtA []byte, err error)
- func (m *NewValidBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *NewValidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NewValidBlock) ProtoMessage()
- func (m *NewValidBlock) Reset()
- func (m *NewValidBlock) Size() (n int)
- func (m *NewValidBlock) String() string
- func (m *NewValidBlock) Unmarshal(dAtA []byte) error
- func (m *NewValidBlock) XXX_DiscardUnknown()
- func (m *NewValidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewValidBlock) XXX_Merge(src proto.Message)
- func (m *NewValidBlock) XXX_Size() int
- func (m *NewValidBlock) XXX_Unmarshal(b []byte) error
- type Part
- func (*Part) Descriptor() ([]byte, []int)
- func (m *Part) GetBytes() []byte
- func (m *Part) GetIndex() uint32
- func (m *Part) GetProof() crypto.Proof
- func (m *Part) Marshal() (dAtA []byte, err error)
- func (m *Part) MarshalTo(dAtA []byte) (int, error)
- func (m *Part) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Part) ProtoMessage()
- func (m *Part) Reset()
- func (m *Part) Size() (n int)
- func (m *Part) String() string
- func (m *Part) Unmarshal(dAtA []byte) error
- func (m *Part) XXX_DiscardUnknown()
- func (m *Part) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Part) XXX_Merge(src proto.Message)
- func (m *Part) XXX_Size() int
- func (m *Part) XXX_Unmarshal(b []byte) error
- type PartSetHeader
- func (*PartSetHeader) Descriptor() ([]byte, []int)
- func (m *PartSetHeader) GetHash() []byte
- func (m *PartSetHeader) GetTotal() uint32
- func (m *PartSetHeader) Marshal() (dAtA []byte, err error)
- func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PartSetHeader) ProtoMessage()
- func (m *PartSetHeader) Reset()
- func (m *PartSetHeader) Size() (n int)
- func (m *PartSetHeader) String() string
- func (m *PartSetHeader) Unmarshal(dAtA []byte) error
- func (m *PartSetHeader) XXX_DiscardUnknown()
- func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PartSetHeader) XXX_Merge(src proto.Message)
- func (m *PartSetHeader) XXX_Size() int
- func (m *PartSetHeader) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetData() []byte
- func (m *Proposal) GetPolRound() int32
- func (m *Proposal) GetRound() int32
- func (m *Proposal) GetSignature() []byte
- func (m *Proposal) GetTimestamp() time.Time
- func (m *Proposal) GetType() SignedMsgType
- 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 ProposalPOL
- func (*ProposalPOL) Descriptor() ([]byte, []int)
- func (m *ProposalPOL) GetHeight() int64
- func (m *ProposalPOL) GetProposalPol() bits.BitArray
- func (m *ProposalPOL) GetProposalPolRound() int32
- func (m *ProposalPOL) Marshal() (dAtA []byte, err error)
- func (m *ProposalPOL) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalPOL) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProposalPOL) ProtoMessage()
- func (m *ProposalPOL) Reset()
- func (m *ProposalPOL) Size() (n int)
- func (m *ProposalPOL) String() string
- func (m *ProposalPOL) Unmarshal(dAtA []byte) error
- func (m *ProposalPOL) XXX_DiscardUnknown()
- func (m *ProposalPOL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalPOL) XXX_Merge(src proto.Message)
- func (m *ProposalPOL) XXX_Size() int
- func (m *ProposalPOL) XXX_Unmarshal(b []byte) error
- type SignedMsgType
- type SimpleValidator
- func (*SimpleValidator) Descriptor() ([]byte, []int)
- func (m *SimpleValidator) GetPubKey() *crypto.PublicKey
- func (m *SimpleValidator) GetVotingPower() int64
- func (m *SimpleValidator) Marshal() (dAtA []byte, err error)
- func (m *SimpleValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *SimpleValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SimpleValidator) ProtoMessage()
- func (m *SimpleValidator) Reset()
- func (m *SimpleValidator) Size() (n int)
- func (m *SimpleValidator) String() string
- func (m *SimpleValidator) Unmarshal(dAtA []byte) error
- func (m *SimpleValidator) XXX_DiscardUnknown()
- func (m *SimpleValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimpleValidator) XXX_Merge(src proto.Message)
- func (m *SimpleValidator) XXX_Size() int
- func (m *SimpleValidator) XXX_Unmarshal(b []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() []byte
- func (m *Validator) GetProposerPriority() int64
- func (m *Validator) GetPubKey() crypto.PublicKey
- func (m *Validator) GetVotingPower() int64
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)
- func (m *ValidatorSet) GetProposer() *Validator
- func (m *ValidatorSet) GetTotalVotingPower() int64
- func (m *ValidatorSet) GetValidators() []*Validator
- 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 (*ValidatorSet) ProtoMessage()
- 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
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetDataHash() DataHash
- func (m *Vote) GetHeight() int64
- func (m *Vote) GetRound() int32
- func (m *Vote) GetSignature() []byte
- func (m *Vote) GetTimestamp() time.Time
- func (m *Vote) GetType() SignedMsgType
- func (m *Vote) GetValidatorAddress() []byte
- func (m *Vote) GetValidatorIndex() int32
- 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 VoteSetBits
- func (*VoteSetBits) Descriptor() ([]byte, []int)
- func (m *VoteSetBits) GetDataHash() DataHash
- func (m *VoteSetBits) GetHeight() int64
- func (m *VoteSetBits) GetRound() int32
- func (m *VoteSetBits) GetType() SignedMsgType
- func (m *VoteSetBits) GetVotes() bits.BitArray
- func (m *VoteSetBits) Marshal() (dAtA []byte, err error)
- func (m *VoteSetBits) MarshalTo(dAtA []byte) (int, error)
- func (m *VoteSetBits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VoteSetBits) ProtoMessage()
- func (m *VoteSetBits) Reset()
- func (m *VoteSetBits) Size() (n int)
- func (m *VoteSetBits) String() string
- func (m *VoteSetBits) Unmarshal(dAtA []byte) error
- func (m *VoteSetBits) XXX_DiscardUnknown()
- func (m *VoteSetBits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteSetBits) XXX_Merge(src proto.Message)
- func (m *VoteSetBits) XXX_Size() int
- func (m *VoteSetBits) XXX_Unmarshal(b []byte) error
- type VoteSetMaj23
- func (*VoteSetMaj23) Descriptor() ([]byte, []int)
- func (m *VoteSetMaj23) GetDataHash() DataHash
- func (m *VoteSetMaj23) GetHeight() int64
- func (m *VoteSetMaj23) GetRound() int32
- func (m *VoteSetMaj23) GetType() SignedMsgType
- func (m *VoteSetMaj23) Marshal() (dAtA []byte, err error)
- func (m *VoteSetMaj23) MarshalTo(dAtA []byte) (int, error)
- func (m *VoteSetMaj23) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VoteSetMaj23) ProtoMessage()
- func (m *VoteSetMaj23) Reset()
- func (m *VoteSetMaj23) Size() (n int)
- func (m *VoteSetMaj23) String() string
- func (m *VoteSetMaj23) Unmarshal(dAtA []byte) error
- func (m *VoteSetMaj23) XXX_DiscardUnknown()
- func (m *VoteSetMaj23) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteSetMaj23) XXX_Merge(src proto.Message)
- func (m *VoteSetMaj23) XXX_Size() int
- func (m *VoteSetMaj23) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCanonical = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCanonical = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCanonical = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthConTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConTypes = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") )
var DataHashFlag_name = map[int32]string{
0: "DATA_HASH_FLAG_UNKNOWN",
1: "DATA_HASH_FLAG_ABSENT",
2: "DATA_HASH_FLAG_COMMIT",
3: "DATA_HASH_FLAG_NIL",
}
var DataHashFlag_value = map[string]int32{
"DATA_HASH_FLAG_UNKNOWN": 0,
"DATA_HASH_FLAG_ABSENT": 1,
"DATA_HASH_FLAG_COMMIT": 2,
"DATA_HASH_FLAG_NIL": 3,
}
var SignedMsgType_name = map[int32]string{
0: "SIGNED_MSG_TYPE_UNKNOWN",
1: "SIGNED_MSG_TYPE_PREVOTE",
2: "SIGNED_MSG_TYPE_PRECOMMIT",
32: "SIGNED_MSG_TYPE_PROPOSAL",
}
var SignedMsgType_value = map[string]int32{
"SIGNED_MSG_TYPE_UNKNOWN": 0,
"SIGNED_MSG_TYPE_PREVOTE": 1,
"SIGNED_MSG_TYPE_PRECOMMIT": 2,
"SIGNED_MSG_TYPE_PROPOSAL": 32,
}
Functions ¶
This section is empty.
Types ¶
type CanonicalDataHash ¶
type CanonicalDataHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
func (*CanonicalDataHash) Descriptor ¶
func (*CanonicalDataHash) Descriptor() ([]byte, []int)
func (*CanonicalDataHash) GetHash ¶
func (m *CanonicalDataHash) GetHash() []byte
func (*CanonicalDataHash) Marshal ¶
func (m *CanonicalDataHash) Marshal() (dAtA []byte, err error)
func (*CanonicalDataHash) MarshalTo ¶
func (m *CanonicalDataHash) MarshalTo(dAtA []byte) (int, error)
func (*CanonicalDataHash) MarshalToSizedBuffer ¶
func (m *CanonicalDataHash) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalDataHash) ProtoMessage ¶
func (*CanonicalDataHash) ProtoMessage()
func (*CanonicalDataHash) Reset ¶
func (m *CanonicalDataHash) Reset()
func (*CanonicalDataHash) Size ¶
func (m *CanonicalDataHash) Size() (n int)
func (*CanonicalDataHash) String ¶
func (m *CanonicalDataHash) String() string
func (*CanonicalDataHash) Unmarshal ¶
func (m *CanonicalDataHash) Unmarshal(dAtA []byte) error
func (*CanonicalDataHash) XXX_DiscardUnknown ¶
func (m *CanonicalDataHash) XXX_DiscardUnknown()
func (*CanonicalDataHash) XXX_Marshal ¶
func (m *CanonicalDataHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalDataHash) XXX_Merge ¶
func (m *CanonicalDataHash) XXX_Merge(src proto.Message)
func (*CanonicalDataHash) XXX_Size ¶
func (m *CanonicalDataHash) XXX_Size() int
func (*CanonicalDataHash) XXX_Unmarshal ¶
func (m *CanonicalDataHash) XXX_Unmarshal(b []byte) error
type CanonicalProposal ¶
type CanonicalProposal struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` POLRound int64 `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"` DataHash *CanonicalDataHash `protobuf:"bytes,5,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` ChainID string `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*CanonicalProposal) Descriptor ¶
func (*CanonicalProposal) Descriptor() ([]byte, []int)
func (*CanonicalProposal) GetChainID ¶
func (m *CanonicalProposal) GetChainID() string
func (*CanonicalProposal) GetDataHash ¶
func (m *CanonicalProposal) GetDataHash() *CanonicalDataHash
func (*CanonicalProposal) GetHeight ¶
func (m *CanonicalProposal) GetHeight() int64
func (*CanonicalProposal) GetPOLRound ¶
func (m *CanonicalProposal) GetPOLRound() int64
func (*CanonicalProposal) GetRound ¶
func (m *CanonicalProposal) GetRound() int64
func (*CanonicalProposal) GetTimestamp ¶
func (m *CanonicalProposal) GetTimestamp() time.Time
func (*CanonicalProposal) GetType ¶
func (m *CanonicalProposal) GetType() SignedMsgType
func (*CanonicalProposal) Marshal ¶
func (m *CanonicalProposal) Marshal() (dAtA []byte, err error)
func (*CanonicalProposal) MarshalTo ¶
func (m *CanonicalProposal) MarshalTo(dAtA []byte) (int, error)
func (*CanonicalProposal) MarshalToSizedBuffer ¶
func (m *CanonicalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalProposal) ProtoMessage ¶
func (*CanonicalProposal) ProtoMessage()
func (*CanonicalProposal) Reset ¶
func (m *CanonicalProposal) Reset()
func (*CanonicalProposal) Size ¶
func (m *CanonicalProposal) Size() (n int)
func (*CanonicalProposal) String ¶
func (m *CanonicalProposal) String() string
func (*CanonicalProposal) Unmarshal ¶
func (m *CanonicalProposal) Unmarshal(dAtA []byte) error
func (*CanonicalProposal) XXX_DiscardUnknown ¶
func (m *CanonicalProposal) XXX_DiscardUnknown()
func (*CanonicalProposal) XXX_Marshal ¶
func (m *CanonicalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalProposal) XXX_Merge ¶
func (m *CanonicalProposal) XXX_Merge(src proto.Message)
func (*CanonicalProposal) XXX_Size ¶
func (m *CanonicalProposal) XXX_Size() int
func (*CanonicalProposal) XXX_Unmarshal ¶
func (m *CanonicalProposal) XXX_Unmarshal(b []byte) error
type CanonicalVote ¶
type CanonicalVote struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"` Round int64 `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"` DataHash *CanonicalDataHash `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` ChainID string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*CanonicalVote) Descriptor ¶
func (*CanonicalVote) Descriptor() ([]byte, []int)
func (*CanonicalVote) GetChainID ¶
func (m *CanonicalVote) GetChainID() string
func (*CanonicalVote) GetDataHash ¶
func (m *CanonicalVote) GetDataHash() *CanonicalDataHash
func (*CanonicalVote) GetHeight ¶
func (m *CanonicalVote) GetHeight() int64
func (*CanonicalVote) GetRound ¶
func (m *CanonicalVote) GetRound() int64
func (*CanonicalVote) GetTimestamp ¶
func (m *CanonicalVote) GetTimestamp() time.Time
func (*CanonicalVote) GetType ¶
func (m *CanonicalVote) GetType() SignedMsgType
func (*CanonicalVote) Marshal ¶
func (m *CanonicalVote) Marshal() (dAtA []byte, err error)
func (*CanonicalVote) MarshalToSizedBuffer ¶
func (m *CanonicalVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalVote) ProtoMessage ¶
func (*CanonicalVote) ProtoMessage()
func (*CanonicalVote) Reset ¶
func (m *CanonicalVote) Reset()
func (*CanonicalVote) Size ¶
func (m *CanonicalVote) Size() (n int)
func (*CanonicalVote) String ¶
func (m *CanonicalVote) String() string
func (*CanonicalVote) Unmarshal ¶
func (m *CanonicalVote) Unmarshal(dAtA []byte) error
func (*CanonicalVote) XXX_DiscardUnknown ¶
func (m *CanonicalVote) XXX_DiscardUnknown()
func (*CanonicalVote) XXX_Marshal ¶
func (m *CanonicalVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalVote) XXX_Merge ¶
func (m *CanonicalVote) XXX_Merge(src proto.Message)
func (*CanonicalVote) XXX_Size ¶
func (m *CanonicalVote) XXX_Size() int
func (*CanonicalVote) XXX_Unmarshal ¶
func (m *CanonicalVote) XXX_Unmarshal(b []byte) error
type Commit ¶
type Commit 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"` DataHash DataHash `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"` Signatures []CommitSig `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures"` }
Commit contains the evidence that a block was committed by a set of validators.
func (*Commit) Descriptor ¶
func (*Commit) GetDataHash ¶
func (*Commit) GetSignatures ¶
func (*Commit) MarshalToSizedBuffer ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) XXX_DiscardUnknown ¶
func (m *Commit) XXX_DiscardUnknown()
func (*Commit) XXX_Marshal ¶
func (*Commit) XXX_Unmarshal ¶
type CommitSig ¶
type CommitSig struct { DataHashFlag DataHashFlag `protobuf:"varint,1,opt,name=data_hash_flag,json=dataHashFlag,proto3,enum=pb.DataHashFlag" json:"data_hash_flag,omitempty"` ValidatorAddress []byte `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Timestamp time.Time `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` }
CommitSig is a part of the Vote included in a Commit.
func (*CommitSig) Descriptor ¶
func (*CommitSig) GetDataHashFlag ¶
func (m *CommitSig) GetDataHashFlag() DataHashFlag
func (*CommitSig) GetSignature ¶
func (*CommitSig) GetTimestamp ¶
func (*CommitSig) GetValidatorAddress ¶
func (*CommitSig) MarshalToSizedBuffer ¶
func (*CommitSig) ProtoMessage ¶
func (*CommitSig) ProtoMessage()
func (*CommitSig) XXX_DiscardUnknown ¶
func (m *CommitSig) XXX_DiscardUnknown()
func (*CommitSig) XXX_Marshal ¶
func (*CommitSig) XXX_Unmarshal ¶
type Data ¶
type Data struct { // Txs that will be applied by state @ block.Height+1. // NOTE: not all txs here are valid. We're just agreeing on the order first. // This means that block.AppHash does not include these txs. Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` }
Data contains the set of transactions included in the block
func (*Data) Descriptor ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type DataHash ¶
type DataHash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
DataHash
func (*DataHash) Descriptor ¶
func (*DataHash) MarshalToSizedBuffer ¶
func (*DataHash) ProtoMessage ¶
func (*DataHash) ProtoMessage()
func (*DataHash) XXX_DiscardUnknown ¶
func (m *DataHash) XXX_DiscardUnknown()
func (*DataHash) XXX_Marshal ¶
func (*DataHash) XXX_Unmarshal ¶
type DataHashFlag ¶
type DataHashFlag int32
DataHashFlag indicates which DataHash the signature is for
const ( DataHashFlagUnknown DataHashFlag = 0 DataHashFlagAbsent DataHashFlag = 1 DataHashFlagCommit DataHashFlag = 2 DataHashFlagNil DataHashFlag = 3 )
func (DataHashFlag) EnumDescriptor ¶
func (DataHashFlag) EnumDescriptor() ([]byte, []int)
func (DataHashFlag) String ¶
func (x DataHashFlag) String() string
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 SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` }
HasVote is sent to indicate that a particular vote has been received.
func (*HasVote) Descriptor ¶
func (*HasVote) GetType ¶
func (m *HasVote) GetType() SignedMsgType
func (*HasVote) MarshalToSizedBuffer ¶
func (*HasVote) ProtoMessage ¶
func (*HasVote) ProtoMessage()
func (*HasVote) XXX_DiscardUnknown ¶
func (m *HasVote) XXX_DiscardUnknown()
func (*HasVote) XXX_Marshal ¶
func (*HasVote) XXX_Unmarshal ¶
type Header ¶
type Header struct { // basic block info Version version.Consensus `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` ChainID string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` // prev block info LastDataHash DataHash `protobuf:"bytes,5,opt,name=last_data_hash,json=lastDataHash,proto3" json:"last_data_hash"` // hashes of block data LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"` DataHash []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // hashes from the app output from the prev block ValidatorsHash []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"` NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"` ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"` AppHash []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"` LastResultsHash []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"` // consensus info EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"` ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` }
Header defines the structure of a Tendermint block header.
func (*Header) Descriptor ¶
func (*Header) GetAppHash ¶
func (*Header) GetChainID ¶
func (*Header) GetConsensusHash ¶
func (*Header) GetDataHash ¶
func (*Header) GetEvidenceHash ¶
func (*Header) GetLastCommitHash ¶
func (*Header) GetLastDataHash ¶
func (*Header) GetLastResultsHash ¶
func (*Header) GetNextValidatorsHash ¶
func (*Header) GetProposerAddress ¶
func (*Header) GetValidatorsHash ¶
func (*Header) GetVersion ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type Message ¶
type Message struct { // Types that are valid to be assigned to Sum: // *Message_Proposal // *Message_Vote Sum isMessage_Sum `protobuf_oneof:"sum"` }
func (*Message) Descriptor ¶
func (*Message) GetProposal ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_OneofWrappers ¶
func (*Message) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Message) XXX_Unmarshal ¶
type Message_Proposal ¶
type Message_Proposal struct {
Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"`
}
func (*Message_Proposal) MarshalToSizedBuffer ¶
func (m *Message_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Proposal) Size ¶
func (m *Message_Proposal) Size() (n int)
type Message_Vote ¶
type Message_Vote struct {
Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3,oneof" json:"vote,omitempty"`
}
func (*Message_Vote) MarshalToSizedBuffer ¶
func (m *Message_Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Message_Vote) Size ¶
func (m *Message_Vote) Size() (n int)
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"` }
NewRoundStep 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) Marshal ¶
func (m *NewRoundStep) Marshal() (dAtA []byte, err error)
func (*NewRoundStep) MarshalToSizedBuffer ¶
func (m *NewRoundStep) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NewRoundStep) ProtoMessage ¶
func (*NewRoundStep) ProtoMessage()
func (*NewRoundStep) Reset ¶
func (m *NewRoundStep) Reset()
func (*NewRoundStep) Size ¶
func (m *NewRoundStep) Size() (n int)
func (*NewRoundStep) String ¶
func (m *NewRoundStep) String() string
func (*NewRoundStep) Unmarshal ¶
func (m *NewRoundStep) Unmarshal(dAtA []byte) error
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"` 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"` }
NewValidBlock 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) GetHeight ¶
func (m *NewValidBlock) GetHeight() int64
func (*NewValidBlock) GetIsCommit ¶
func (m *NewValidBlock) GetIsCommit() bool
func (*NewValidBlock) GetRound ¶
func (m *NewValidBlock) GetRound() int32
func (*NewValidBlock) Marshal ¶
func (m *NewValidBlock) Marshal() (dAtA []byte, err error)
func (*NewValidBlock) MarshalToSizedBuffer ¶
func (m *NewValidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NewValidBlock) ProtoMessage ¶
func (*NewValidBlock) ProtoMessage()
func (*NewValidBlock) Reset ¶
func (m *NewValidBlock) Reset()
func (*NewValidBlock) Size ¶
func (m *NewValidBlock) Size() (n int)
func (*NewValidBlock) String ¶
func (m *NewValidBlock) String() string
func (*NewValidBlock) Unmarshal ¶
func (m *NewValidBlock) Unmarshal(dAtA []byte) error
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 Part ¶
type Part struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"` Proof crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof"` }
func (*Part) Descriptor ¶
func (*Part) ProtoMessage ¶
func (*Part) ProtoMessage()
func (*Part) XXX_DiscardUnknown ¶
func (m *Part) XXX_DiscardUnknown()
func (*Part) XXX_Unmarshal ¶
type PartSetHeader ¶
type PartSetHeader struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` }
PartsetHeader
func (*PartSetHeader) Descriptor ¶
func (*PartSetHeader) Descriptor() ([]byte, []int)
func (*PartSetHeader) GetHash ¶
func (m *PartSetHeader) GetHash() []byte
func (*PartSetHeader) GetTotal ¶
func (m *PartSetHeader) GetTotal() uint32
func (*PartSetHeader) Marshal ¶
func (m *PartSetHeader) Marshal() (dAtA []byte, err error)
func (*PartSetHeader) MarshalToSizedBuffer ¶
func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PartSetHeader) ProtoMessage ¶
func (*PartSetHeader) ProtoMessage()
func (*PartSetHeader) Reset ¶
func (m *PartSetHeader) Reset()
func (*PartSetHeader) Size ¶
func (m *PartSetHeader) Size() (n int)
func (*PartSetHeader) String ¶
func (m *PartSetHeader) String() string
func (*PartSetHeader) Unmarshal ¶
func (m *PartSetHeader) Unmarshal(dAtA []byte) error
func (*PartSetHeader) XXX_DiscardUnknown ¶
func (m *PartSetHeader) XXX_DiscardUnknown()
func (*PartSetHeader) XXX_Marshal ¶
func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PartSetHeader) XXX_Merge ¶
func (m *PartSetHeader) XXX_Merge(src proto.Message)
func (*PartSetHeader) XXX_Size ¶
func (m *PartSetHeader) XXX_Size() int
func (*PartSetHeader) XXX_Unmarshal ¶
func (m *PartSetHeader) XXX_Unmarshal(b []byte) error
type Proposal ¶
type Proposal struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` PolRound int32 `protobuf:"varint,3,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*Proposal) Descriptor ¶
func (*Proposal) GetPolRound ¶
func (*Proposal) GetSignature ¶
func (*Proposal) GetTimestamp ¶
func (*Proposal) GetType ¶
func (m *Proposal) GetType() SignedMsgType
func (*Proposal) MarshalToSizedBuffer ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
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"` }
ProposalPOL 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) Marshal ¶
func (m *ProposalPOL) Marshal() (dAtA []byte, err error)
func (*ProposalPOL) MarshalToSizedBuffer ¶
func (m *ProposalPOL) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalPOL) ProtoMessage ¶
func (*ProposalPOL) ProtoMessage()
func (*ProposalPOL) Reset ¶
func (m *ProposalPOL) Reset()
func (*ProposalPOL) Size ¶
func (m *ProposalPOL) Size() (n int)
func (*ProposalPOL) String ¶
func (m *ProposalPOL) String() string
func (*ProposalPOL) Unmarshal ¶
func (m *ProposalPOL) Unmarshal(dAtA []byte) error
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 SignedMsgType ¶
type SignedMsgType int32
SignedMsgType is a type of signed message in the consensus.
const ( UnknownType SignedMsgType = 0 // Votes PrevoteType SignedMsgType = 1 PrecommitType SignedMsgType = 2 // Proposals ProposalType SignedMsgType = 32 )
func (SignedMsgType) EnumDescriptor ¶
func (SignedMsgType) EnumDescriptor() ([]byte, []int)
func (SignedMsgType) String ¶
func (x SignedMsgType) String() string
type SimpleValidator ¶
type SimpleValidator struct { PubKey *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` VotingPower int64 `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` }
func (*SimpleValidator) Descriptor ¶
func (*SimpleValidator) Descriptor() ([]byte, []int)
func (*SimpleValidator) GetPubKey ¶
func (m *SimpleValidator) GetPubKey() *crypto.PublicKey
func (*SimpleValidator) GetVotingPower ¶
func (m *SimpleValidator) GetVotingPower() int64
func (*SimpleValidator) Marshal ¶
func (m *SimpleValidator) Marshal() (dAtA []byte, err error)
func (*SimpleValidator) MarshalToSizedBuffer ¶
func (m *SimpleValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SimpleValidator) ProtoMessage ¶
func (*SimpleValidator) ProtoMessage()
func (*SimpleValidator) Reset ¶
func (m *SimpleValidator) Reset()
func (*SimpleValidator) Size ¶
func (m *SimpleValidator) Size() (n int)
func (*SimpleValidator) String ¶
func (m *SimpleValidator) String() string
func (*SimpleValidator) Unmarshal ¶
func (m *SimpleValidator) Unmarshal(dAtA []byte) error
func (*SimpleValidator) XXX_DiscardUnknown ¶
func (m *SimpleValidator) XXX_DiscardUnknown()
func (*SimpleValidator) XXX_Marshal ¶
func (m *SimpleValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimpleValidator) XXX_Merge ¶
func (m *SimpleValidator) XXX_Merge(src proto.Message)
func (*SimpleValidator) XXX_Size ¶
func (m *SimpleValidator) XXX_Size() int
func (*SimpleValidator) XXX_Unmarshal ¶
func (m *SimpleValidator) XXX_Unmarshal(b []byte) error
type Validator ¶
type Validator struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey crypto.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` VotingPower int64 `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` ProposerPriority int64 `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"` }
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) GetProposerPriority ¶
func (*Validator) GetVotingPower ¶
func (*Validator) MarshalToSizedBuffer ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type ValidatorSet ¶
type ValidatorSet struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` Proposer *Validator `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` TotalVotingPower int64 `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` }
func (*ValidatorSet) Descriptor ¶
func (*ValidatorSet) Descriptor() ([]byte, []int)
func (*ValidatorSet) GetProposer ¶
func (m *ValidatorSet) GetProposer() *Validator
func (*ValidatorSet) GetTotalVotingPower ¶
func (m *ValidatorSet) GetTotalVotingPower() int64
func (*ValidatorSet) GetValidators ¶
func (m *ValidatorSet) GetValidators() []*Validator
func (*ValidatorSet) Marshal ¶
func (m *ValidatorSet) Marshal() (dAtA []byte, err error)
func (*ValidatorSet) MarshalToSizedBuffer ¶
func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorSet) ProtoMessage ¶
func (*ValidatorSet) ProtoMessage()
func (*ValidatorSet) Reset ¶
func (m *ValidatorSet) Reset()
func (*ValidatorSet) Size ¶
func (m *ValidatorSet) Size() (n int)
func (*ValidatorSet) String ¶
func (m *ValidatorSet) String() string
func (*ValidatorSet) Unmarshal ¶
func (m *ValidatorSet) Unmarshal(dAtA []byte) error
func (*ValidatorSet) XXX_DiscardUnknown ¶
func (m *ValidatorSet) XXX_DiscardUnknown()
func (*ValidatorSet) XXX_Marshal ¶
func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorSet) XXX_Merge ¶
func (m *ValidatorSet) XXX_Merge(src proto.Message)
func (*ValidatorSet) XXX_Size ¶
func (m *ValidatorSet) XXX_Size() int
func (*ValidatorSet) XXX_Unmarshal ¶
func (m *ValidatorSet) XXX_Unmarshal(b []byte) error
type Vote ¶
type Vote struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` DataHash DataHash `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` ValidatorAddress []byte `protobuf:"bytes,6,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` ValidatorIndex int32 `protobuf:"varint,7,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` }
Vote represents a prevote, precommit, or commit vote from validators for consensus.
func (*Vote) Descriptor ¶
func (*Vote) GetDataHash ¶
func (*Vote) GetSignature ¶
func (*Vote) GetTimestamp ¶
func (*Vote) GetType ¶
func (m *Vote) GetType() SignedMsgType
func (*Vote) GetValidatorAddress ¶
func (*Vote) GetValidatorIndex ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
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 SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` DataHash DataHash `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"` Votes bits.BitArray `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes"` }
VoteSetBits is sent to communicate the bit-array of votes seen for the BlockID.
func (*VoteSetBits) Descriptor ¶
func (*VoteSetBits) Descriptor() ([]byte, []int)
func (*VoteSetBits) GetDataHash ¶
func (m *VoteSetBits) GetDataHash() DataHash
func (*VoteSetBits) GetHeight ¶
func (m *VoteSetBits) GetHeight() int64
func (*VoteSetBits) GetRound ¶
func (m *VoteSetBits) GetRound() int32
func (*VoteSetBits) GetType ¶
func (m *VoteSetBits) GetType() SignedMsgType
func (*VoteSetBits) GetVotes ¶
func (m *VoteSetBits) GetVotes() bits.BitArray
func (*VoteSetBits) Marshal ¶
func (m *VoteSetBits) Marshal() (dAtA []byte, err error)
func (*VoteSetBits) MarshalToSizedBuffer ¶
func (m *VoteSetBits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VoteSetBits) ProtoMessage ¶
func (*VoteSetBits) ProtoMessage()
func (*VoteSetBits) Reset ¶
func (m *VoteSetBits) Reset()
func (*VoteSetBits) Size ¶
func (m *VoteSetBits) Size() (n int)
func (*VoteSetBits) String ¶
func (m *VoteSetBits) String() string
func (*VoteSetBits) Unmarshal ¶
func (m *VoteSetBits) Unmarshal(dAtA []byte) error
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 SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"` DataHash DataHash `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"` }
VoteSetMaj23 is sent to indicate that a given BlockID has seen +2/3 votes.
func (*VoteSetMaj23) Descriptor ¶
func (*VoteSetMaj23) Descriptor() ([]byte, []int)
func (*VoteSetMaj23) GetDataHash ¶
func (m *VoteSetMaj23) GetDataHash() DataHash
func (*VoteSetMaj23) GetHeight ¶
func (m *VoteSetMaj23) GetHeight() int64
func (*VoteSetMaj23) GetRound ¶
func (m *VoteSetMaj23) GetRound() int32
func (*VoteSetMaj23) GetType ¶
func (m *VoteSetMaj23) GetType() SignedMsgType
func (*VoteSetMaj23) Marshal ¶
func (m *VoteSetMaj23) Marshal() (dAtA []byte, err error)
func (*VoteSetMaj23) MarshalToSizedBuffer ¶
func (m *VoteSetMaj23) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VoteSetMaj23) ProtoMessage ¶
func (*VoteSetMaj23) ProtoMessage()
func (*VoteSetMaj23) Reset ¶
func (m *VoteSetMaj23) Reset()
func (*VoteSetMaj23) Size ¶
func (m *VoteSetMaj23) Size() (n int)
func (*VoteSetMaj23) String ¶
func (m *VoteSetMaj23) String() string
func (*VoteSetMaj23) Unmarshal ¶
func (m *VoteSetMaj23) Unmarshal(dAtA []byte) error
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