Documentation ¶
Index ¶
- Variables
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetData() Data
- func (m *Block) GetEvidence() EvidenceData
- func (m *Block) GetHeader() Header
- func (m *Block) GetLastCommit() *Commit
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) String() string
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockID
- func (*BlockID) Descriptor() ([]byte, []int)
- func (m *BlockID) GetHash() []byte
- func (m *BlockID) GetPartsHeader() PartSetHeader
- func (m *BlockID) Marshal() (dAtA []byte, err error)
- func (m *BlockID) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockID) ProtoMessage()
- func (m *BlockID) Reset()
- func (m *BlockID) Size() (n int)
- func (m *BlockID) String() string
- func (m *BlockID) Unmarshal(dAtA []byte) error
- func (m *BlockID) XXX_DiscardUnknown()
- func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockID) XXX_Merge(src proto.Message)
- func (m *BlockID) XXX_Size() int
- func (m *BlockID) XXX_Unmarshal(b []byte) error
- type BlockIDFlag
- type BlockMeta
- func (*BlockMeta) Descriptor() ([]byte, []int)
- func (m *BlockMeta) GetBlockID() BlockID
- func (m *BlockMeta) GetBlockSize() int64
- func (m *BlockMeta) GetHeader() Header
- func (m *BlockMeta) GetNumTxs() int64
- func (m *BlockMeta) Marshal() (dAtA []byte, err error)
- func (m *BlockMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockMeta) ProtoMessage()
- func (m *BlockMeta) Reset()
- func (m *BlockMeta) Size() (n int)
- func (m *BlockMeta) String() string
- func (m *BlockMeta) Unmarshal(dAtA []byte) error
- func (m *BlockMeta) XXX_DiscardUnknown()
- func (m *BlockMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockMeta) XXX_Merge(src proto.Message)
- func (m *BlockMeta) XXX_Size() int
- func (m *BlockMeta) XXX_Unmarshal(b []byte) error
- type BlockParams
- func (*BlockParams) Descriptor() ([]byte, []int)
- func (this *BlockParams) Equal(that interface{}) bool
- func (m *BlockParams) GetMaxBytes() int64
- func (m *BlockParams) GetMaxGas() int64
- func (m *BlockParams) GetTimeIotaMs() int64
- func (*BlockParams) ProtoMessage()
- func (m *BlockParams) Reset()
- func (m *BlockParams) String() string
- func (m *BlockParams) XXX_DiscardUnknown()
- func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockParams) XXX_Merge(src proto.Message)
- func (m *BlockParams) XXX_Size() int
- func (m *BlockParams) XXX_Unmarshal(b []byte) error
- type CanonicalBlockID
- func (*CanonicalBlockID) Descriptor() ([]byte, []int)
- func (m *CanonicalBlockID) GetHash() []byte
- func (m *CanonicalBlockID) GetPartSetHeader() CanonicalPartSetHeader
- func (m *CanonicalBlockID) Marshal() (dAtA []byte, err error)
- func (m *CanonicalBlockID) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalBlockID) ProtoMessage()
- func (m *CanonicalBlockID) Reset()
- func (m *CanonicalBlockID) Size() (n int)
- func (m *CanonicalBlockID) String() string
- func (m *CanonicalBlockID) Unmarshal(dAtA []byte) error
- func (m *CanonicalBlockID) XXX_DiscardUnknown()
- func (m *CanonicalBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalBlockID) XXX_Merge(src proto.Message)
- func (m *CanonicalBlockID) XXX_Size() int
- func (m *CanonicalBlockID) XXX_Unmarshal(b []byte) error
- type CanonicalPartSetHeader
- func (*CanonicalPartSetHeader) Descriptor() ([]byte, []int)
- func (m *CanonicalPartSetHeader) GetHash() []byte
- func (m *CanonicalPartSetHeader) GetTotal() uint32
- func (m *CanonicalPartSetHeader) Marshal() (dAtA []byte, err error)
- func (m *CanonicalPartSetHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *CanonicalPartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CanonicalPartSetHeader) ProtoMessage()
- func (m *CanonicalPartSetHeader) Reset()
- func (m *CanonicalPartSetHeader) Size() (n int)
- func (m *CanonicalPartSetHeader) String() string
- func (m *CanonicalPartSetHeader) Unmarshal(dAtA []byte) error
- func (m *CanonicalPartSetHeader) XXX_DiscardUnknown()
- func (m *CanonicalPartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CanonicalPartSetHeader) XXX_Merge(src proto.Message)
- func (m *CanonicalPartSetHeader) XXX_Size() int
- func (m *CanonicalPartSetHeader) XXX_Unmarshal(b []byte) error
- type CanonicalProposal
- func (*CanonicalProposal) Descriptor() ([]byte, []int)
- func (m *CanonicalProposal) GetBlockID() *CanonicalBlockID
- func (m *CanonicalProposal) GetChainID() string
- 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) GetBlockID() *CanonicalBlockID
- func (m *CanonicalVote) GetChainID() string
- 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) GetBitArray() *bits.BitArray
- func (m *Commit) GetBlockID() BlockID
- func (m *Commit) GetHash() []byte
- 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) GetBlockIdFlag() BlockIDFlag
- 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 ConflictingHeadersEvidence
- func (*ConflictingHeadersEvidence) Descriptor() ([]byte, []int)
- func (m *ConflictingHeadersEvidence) GetH1() *SignedHeader
- func (m *ConflictingHeadersEvidence) GetH2() *SignedHeader
- func (*ConflictingHeadersEvidence) ProtoMessage()
- func (m *ConflictingHeadersEvidence) Reset()
- func (m *ConflictingHeadersEvidence) String() string
- func (m *ConflictingHeadersEvidence) XXX_DiscardUnknown()
- func (m *ConflictingHeadersEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConflictingHeadersEvidence) XXX_Merge(src proto.Message)
- func (m *ConflictingHeadersEvidence) XXX_Size() int
- func (m *ConflictingHeadersEvidence) XXX_Unmarshal(b []byte) error
- type ConsensusParams
- func (*ConsensusParams) Descriptor() ([]byte, []int)
- func (this *ConsensusParams) Equal(that interface{}) bool
- func (m *ConsensusParams) GetBlock() BlockParams
- func (m *ConsensusParams) GetEvidence() EvidenceParams
- func (m *ConsensusParams) GetValidator() ValidatorParams
- func (*ConsensusParams) ProtoMessage()
- func (m *ConsensusParams) Reset()
- func (m *ConsensusParams) String() string
- func (m *ConsensusParams) XXX_DiscardUnknown()
- func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsensusParams) XXX_Merge(src proto.Message)
- func (m *ConsensusParams) XXX_Size() int
- func (m *ConsensusParams) XXX_Unmarshal(b []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetHash() []byte
- 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 DuplicateVoteEvidence
- func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int)
- func (m *DuplicateVoteEvidence) GetPubKey() *keys.PublicKey
- func (m *DuplicateVoteEvidence) GetVoteA() *Vote
- func (m *DuplicateVoteEvidence) GetVoteB() *Vote
- func (*DuplicateVoteEvidence) ProtoMessage()
- func (m *DuplicateVoteEvidence) Reset()
- func (m *DuplicateVoteEvidence) String() string
- func (m *DuplicateVoteEvidence) XXX_DiscardUnknown()
- func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message)
- func (m *DuplicateVoteEvidence) XXX_Size() int
- func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error
- type EventDataRoundState
- func (*EventDataRoundState) Descriptor() ([]byte, []int)
- func (m *EventDataRoundState) GetHeight() int64
- func (m *EventDataRoundState) GetRound() int32
- func (m *EventDataRoundState) GetStep() string
- func (*EventDataRoundState) ProtoMessage()
- func (m *EventDataRoundState) Reset()
- func (m *EventDataRoundState) String() string
- func (m *EventDataRoundState) XXX_DiscardUnknown()
- func (m *EventDataRoundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDataRoundState) XXX_Merge(src proto.Message)
- func (m *EventDataRoundState) XXX_Size() int
- func (m *EventDataRoundState) XXX_Unmarshal(b []byte) error
- type Evidence
- func (*Evidence) Descriptor() ([]byte, []int)
- func (m *Evidence) GetConflictingHeadersEvidence() *ConflictingHeadersEvidence
- func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence
- func (m *Evidence) GetLunaticValidatorEvidence() *LunaticValidatorEvidence
- func (m *Evidence) GetMockEvidence() *MockEvidence
- func (m *Evidence) GetMockRandomEvidence() *MockRandomEvidence
- func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence
- func (m *Evidence) GetSum() isEvidence_Sum
- func (*Evidence) ProtoMessage()
- func (m *Evidence) Reset()
- func (m *Evidence) String() string
- func (m *Evidence) XXX_DiscardUnknown()
- func (m *Evidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Evidence) XXX_Merge(src proto.Message)
- func (*Evidence) XXX_OneofWrappers() []interface{}
- func (m *Evidence) XXX_Size() int
- func (m *Evidence) XXX_Unmarshal(b []byte) error
- type EvidenceData
- func (*EvidenceData) Descriptor() ([]byte, []int)
- func (m *EvidenceData) GetEvidence() []Evidence
- func (m *EvidenceData) GetHash() []byte
- func (*EvidenceData) ProtoMessage()
- func (m *EvidenceData) Reset()
- func (m *EvidenceData) String() string
- func (m *EvidenceData) XXX_DiscardUnknown()
- func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EvidenceData) XXX_Merge(src proto.Message)
- func (m *EvidenceData) XXX_Size() int
- func (m *EvidenceData) XXX_Unmarshal(b []byte) error
- type EvidenceParams
- func (*EvidenceParams) Descriptor() ([]byte, []int)
- func (this *EvidenceParams) Equal(that interface{}) bool
- func (m *EvidenceParams) GetMaxAgeDuration() time.Duration
- func (m *EvidenceParams) GetMaxAgeNumBlocks() int64
- func (m *EvidenceParams) GetMaxNum() uint32
- func (*EvidenceParams) ProtoMessage()
- func (m *EvidenceParams) Reset()
- func (m *EvidenceParams) String() string
- func (m *EvidenceParams) XXX_DiscardUnknown()
- func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EvidenceParams) XXX_Merge(src proto.Message)
- func (m *EvidenceParams) XXX_Size() int
- func (m *EvidenceParams) XXX_Unmarshal(b []byte) error
- type Evidence_ConflictingHeadersEvidence
- type Evidence_DuplicateVoteEvidence
- type Evidence_LunaticValidatorEvidence
- type Evidence_MockEvidence
- type Evidence_MockRandomEvidence
- type Evidence_PotentialAmnesiaEvidence
- type HashedParams
- func (*HashedParams) Descriptor() ([]byte, []int)
- func (this *HashedParams) Equal(that interface{}) bool
- func (m *HashedParams) GetBlockMaxBytes() int64
- func (m *HashedParams) GetBlockMaxGas() int64
- func (*HashedParams) ProtoMessage()
- func (m *HashedParams) Reset()
- func (m *HashedParams) String() string
- func (m *HashedParams) XXX_DiscardUnknown()
- func (m *HashedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HashedParams) XXX_Merge(src proto.Message)
- func (m *HashedParams) XXX_Size() int
- func (m *HashedParams) 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) GetLastBlockID() BlockID
- func (m *Header) GetLastCommitHash() []byte
- 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 LunaticValidatorEvidence
- func (*LunaticValidatorEvidence) Descriptor() ([]byte, []int)
- func (m *LunaticValidatorEvidence) GetHeader() *Header
- func (m *LunaticValidatorEvidence) GetInvalidHeaderField() string
- func (m *LunaticValidatorEvidence) GetVote() *Vote
- func (*LunaticValidatorEvidence) ProtoMessage()
- func (m *LunaticValidatorEvidence) Reset()
- func (m *LunaticValidatorEvidence) String() string
- func (m *LunaticValidatorEvidence) XXX_DiscardUnknown()
- func (m *LunaticValidatorEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LunaticValidatorEvidence) XXX_Merge(src proto.Message)
- func (m *LunaticValidatorEvidence) XXX_Size() int
- func (m *LunaticValidatorEvidence) XXX_Unmarshal(b []byte) error
- type MockEvidence
- func (*MockEvidence) Descriptor() ([]byte, []int)
- func (m *MockEvidence) GetEvidenceAddress() []byte
- func (m *MockEvidence) GetEvidenceHeight() int64
- func (m *MockEvidence) GetEvidenceTime() time.Time
- func (*MockEvidence) ProtoMessage()
- func (m *MockEvidence) Reset()
- func (m *MockEvidence) String() string
- func (m *MockEvidence) XXX_DiscardUnknown()
- func (m *MockEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MockEvidence) XXX_Merge(src proto.Message)
- func (m *MockEvidence) XXX_Size() int
- func (m *MockEvidence) XXX_Unmarshal(b []byte) error
- type MockRandomEvidence
- func (*MockRandomEvidence) Descriptor() ([]byte, []int)
- func (m *MockRandomEvidence) GetEvidenceAddress() []byte
- func (m *MockRandomEvidence) GetEvidenceHeight() int64
- func (m *MockRandomEvidence) GetEvidenceTime() time.Time
- func (m *MockRandomEvidence) GetRandBytes() []byte
- func (*MockRandomEvidence) ProtoMessage()
- func (m *MockRandomEvidence) Reset()
- func (m *MockRandomEvidence) String() string
- func (m *MockRandomEvidence) XXX_DiscardUnknown()
- func (m *MockRandomEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MockRandomEvidence) XXX_Merge(src proto.Message)
- func (m *MockRandomEvidence) XXX_Size() int
- func (m *MockRandomEvidence) 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() merkle.SimpleProof
- 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() int64
- 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 PotentialAmnesiaEvidence
- func (*PotentialAmnesiaEvidence) Descriptor() ([]byte, []int)
- func (m *PotentialAmnesiaEvidence) GetVoteA() *Vote
- func (m *PotentialAmnesiaEvidence) GetVoteB() *Vote
- func (*PotentialAmnesiaEvidence) ProtoMessage()
- func (m *PotentialAmnesiaEvidence) Reset()
- func (m *PotentialAmnesiaEvidence) String() string
- func (m *PotentialAmnesiaEvidence) XXX_DiscardUnknown()
- func (m *PotentialAmnesiaEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PotentialAmnesiaEvidence) XXX_Merge(src proto.Message)
- func (m *PotentialAmnesiaEvidence) XXX_Size() int
- func (m *PotentialAmnesiaEvidence) XXX_Unmarshal(b []byte) error
- type ProofOfLockChange
- func (*ProofOfLockChange) Descriptor() ([]byte, []int)
- func (m *ProofOfLockChange) GetPubKey() keys.PublicKey
- func (m *ProofOfLockChange) GetVotes() []Vote
- func (*ProofOfLockChange) ProtoMessage()
- func (m *ProofOfLockChange) Reset()
- func (m *ProofOfLockChange) String() string
- func (m *ProofOfLockChange) XXX_DiscardUnknown()
- func (m *ProofOfLockChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProofOfLockChange) XXX_Merge(src proto.Message)
- func (m *ProofOfLockChange) XXX_Size() int
- func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetBlockID() BlockID
- func (m *Proposal) GetHeight() int64
- 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 SignedHeader
- func (*SignedHeader) Descriptor() ([]byte, []int)
- func (m *SignedHeader) GetCommit() *Commit
- func (m *SignedHeader) GetHeader() *Header
- func (m *SignedHeader) Marshal() (dAtA []byte, err error)
- func (m *SignedHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignedHeader) ProtoMessage()
- func (m *SignedHeader) Reset()
- func (m *SignedHeader) Size() (n int)
- func (m *SignedHeader) String() string
- func (m *SignedHeader) Unmarshal(dAtA []byte) error
- func (m *SignedHeader) XXX_DiscardUnknown()
- func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedHeader) XXX_Merge(src proto.Message)
- func (m *SignedHeader) XXX_Size() int
- func (m *SignedHeader) XXX_Unmarshal(b []byte) error
- type SignedMsgType
- type SimpleValidator
- func (*SimpleValidator) Descriptor() ([]byte, []int)
- func (m *SimpleValidator) GetPubKey() *pc.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() keys.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 ValidatorParams
- func (*ValidatorParams) Descriptor() ([]byte, []int)
- func (this *ValidatorParams) Equal(that interface{}) bool
- func (m *ValidatorParams) GetPubKeyTypes() []string
- func (*ValidatorParams) ProtoMessage()
- func (m *ValidatorParams) Reset()
- func (m *ValidatorParams) String() string
- func (m *ValidatorParams) XXX_DiscardUnknown()
- func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorParams) XXX_Merge(src proto.Message)
- func (m *ValidatorParams) XXX_Size() int
- func (m *ValidatorParams) 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) GetBlockID() BlockID
- func (m *Vote) GetHeight() int64
- func (m *Vote) GetRound() int64
- 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() int64
- 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
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 ( 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 BlockIDFlag_name = map[int32]string{
0: "BLOCKD_ID_FLAG_UNKNOWN",
1: "BLOCK_ID_FLAG_ABSENT",
2: "BLOCK_ID_FLAG_COMMIT",
3: "BLOCK_ID_FLAG_NIL",
}
var BlockIDFlag_value = map[string]int32{
"BLOCKD_ID_FLAG_UNKNOWN": 0,
"BLOCK_ID_FLAG_ABSENT": 1,
"BLOCK_ID_FLAG_COMMIT": 2,
"BLOCK_ID_FLAG_NIL": 3,
}
var SignedMsgType_name = map[int32]string{
0: "SIGNED_MSG_TYPE_UNKNOWN",
1: "PREVOTE_TYPE",
2: "PRECOMMIT_TYPE",
3: "PROPOSAL_TYPE",
}
var SignedMsgType_value = map[string]int32{
"SIGNED_MSG_TYPE_UNKNOWN": 0,
"PREVOTE_TYPE": 1,
"PRECOMMIT_TYPE": 2,
"PROPOSAL_TYPE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Header Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header"` Data Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` Evidence EvidenceData `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence"` LastCommit *Commit `protobuf:"bytes,4,opt,name=last_commit,json=lastCommit,proto3" json:"last_commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Block) Descriptor ¶
func (*Block) GetEvidence ¶
func (m *Block) GetEvidence() EvidenceData
func (*Block) GetLastCommit ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockID ¶
type BlockID struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` PartsHeader PartSetHeader `protobuf:"bytes,2,opt,name=parts_header,json=partsHeader,proto3" json:"parts_header"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlockID
func (*BlockID) Descriptor ¶
func (*BlockID) GetPartsHeader ¶
func (m *BlockID) GetPartsHeader() PartSetHeader
func (*BlockID) MarshalToSizedBuffer ¶
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
func (*BlockID) XXX_DiscardUnknown ¶
func (m *BlockID) XXX_DiscardUnknown()
func (*BlockID) XXX_Marshal ¶
func (*BlockID) XXX_Unmarshal ¶
type BlockIDFlag ¶
type BlockIDFlag int32
BlockIdFlag indicates which BlcokID the signature is for
const ( BLOCKD_ID_FLAG_UNKNOWN BlockIDFlag = 0 BlockIDFlagAbsent BlockIDFlag = 1 BlockIDFlagCommit BlockIDFlag = 2 BlockIDFlagNil BlockIDFlag = 3 )
func (BlockIDFlag) EnumDescriptor ¶
func (BlockIDFlag) EnumDescriptor() ([]byte, []int)
func (BlockIDFlag) String ¶
func (x BlockIDFlag) String() string
type BlockMeta ¶
type BlockMeta struct { BlockID BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id"` BlockSize int64 `protobuf:"varint,2,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"` Header Header `protobuf:"bytes,3,opt,name=header,proto3" json:"header"` NumTxs int64 `protobuf:"varint,4,opt,name=num_txs,json=numTxs,proto3" json:"num_txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockMeta) Descriptor ¶
func (*BlockMeta) GetBlockID ¶
func (*BlockMeta) GetBlockSize ¶
func (*BlockMeta) MarshalToSizedBuffer ¶
func (*BlockMeta) ProtoMessage ¶
func (*BlockMeta) ProtoMessage()
func (*BlockMeta) XXX_DiscardUnknown ¶
func (m *BlockMeta) XXX_DiscardUnknown()
func (*BlockMeta) XXX_Marshal ¶
func (*BlockMeta) XXX_Unmarshal ¶
type BlockParams ¶
type BlockParams struct { // Note: must be greater than 0 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` // Note: must be greater or equal to -1 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` // Minimum time increment between consecutive blocks (in milliseconds) // Not exposed to the application. TimeIotaMs int64 `protobuf:"varint,3,opt,name=time_iota_ms,json=timeIotaMs,proto3" json:"time_iota_ms,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlockParams contains limits on the block size.
func (*BlockParams) Descriptor ¶
func (*BlockParams) Descriptor() ([]byte, []int)
func (*BlockParams) Equal ¶
func (this *BlockParams) Equal(that interface{}) bool
func (*BlockParams) GetMaxBytes ¶
func (m *BlockParams) GetMaxBytes() int64
func (*BlockParams) GetMaxGas ¶
func (m *BlockParams) GetMaxGas() int64
func (*BlockParams) GetTimeIotaMs ¶
func (m *BlockParams) GetTimeIotaMs() int64
func (*BlockParams) ProtoMessage ¶
func (*BlockParams) ProtoMessage()
func (*BlockParams) Reset ¶
func (m *BlockParams) Reset()
func (*BlockParams) String ¶
func (m *BlockParams) String() string
func (*BlockParams) XXX_DiscardUnknown ¶
func (m *BlockParams) XXX_DiscardUnknown()
func (*BlockParams) XXX_Marshal ¶
func (m *BlockParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockParams) XXX_Merge ¶
func (m *BlockParams) XXX_Merge(src proto.Message)
func (*BlockParams) XXX_Size ¶
func (m *BlockParams) XXX_Size() int
func (*BlockParams) XXX_Unmarshal ¶
func (m *BlockParams) XXX_Unmarshal(b []byte) error
type CanonicalBlockID ¶
type CanonicalBlockID struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` PartSetHeader CanonicalPartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header"` }
func (*CanonicalBlockID) Descriptor ¶
func (*CanonicalBlockID) Descriptor() ([]byte, []int)
func (*CanonicalBlockID) GetHash ¶
func (m *CanonicalBlockID) GetHash() []byte
func (*CanonicalBlockID) GetPartSetHeader ¶
func (m *CanonicalBlockID) GetPartSetHeader() CanonicalPartSetHeader
func (*CanonicalBlockID) Marshal ¶
func (m *CanonicalBlockID) Marshal() (dAtA []byte, err error)
func (*CanonicalBlockID) MarshalToSizedBuffer ¶
func (m *CanonicalBlockID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalBlockID) ProtoMessage ¶
func (*CanonicalBlockID) ProtoMessage()
func (*CanonicalBlockID) Reset ¶
func (m *CanonicalBlockID) Reset()
func (*CanonicalBlockID) Size ¶
func (m *CanonicalBlockID) Size() (n int)
func (*CanonicalBlockID) String ¶
func (m *CanonicalBlockID) String() string
func (*CanonicalBlockID) Unmarshal ¶
func (m *CanonicalBlockID) Unmarshal(dAtA []byte) error
func (*CanonicalBlockID) XXX_DiscardUnknown ¶
func (m *CanonicalBlockID) XXX_DiscardUnknown()
func (*CanonicalBlockID) XXX_Marshal ¶
func (m *CanonicalBlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalBlockID) XXX_Merge ¶
func (m *CanonicalBlockID) XXX_Merge(src proto.Message)
func (*CanonicalBlockID) XXX_Size ¶
func (m *CanonicalBlockID) XXX_Size() int
func (*CanonicalBlockID) XXX_Unmarshal ¶
func (m *CanonicalBlockID) XXX_Unmarshal(b []byte) error
type CanonicalPartSetHeader ¶
type CanonicalPartSetHeader 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"` }
func (*CanonicalPartSetHeader) Descriptor ¶
func (*CanonicalPartSetHeader) Descriptor() ([]byte, []int)
func (*CanonicalPartSetHeader) GetHash ¶
func (m *CanonicalPartSetHeader) GetHash() []byte
func (*CanonicalPartSetHeader) GetTotal ¶
func (m *CanonicalPartSetHeader) GetTotal() uint32
func (*CanonicalPartSetHeader) Marshal ¶
func (m *CanonicalPartSetHeader) Marshal() (dAtA []byte, err error)
func (*CanonicalPartSetHeader) MarshalTo ¶
func (m *CanonicalPartSetHeader) MarshalTo(dAtA []byte) (int, error)
func (*CanonicalPartSetHeader) MarshalToSizedBuffer ¶
func (m *CanonicalPartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CanonicalPartSetHeader) ProtoMessage ¶
func (*CanonicalPartSetHeader) ProtoMessage()
func (*CanonicalPartSetHeader) Reset ¶
func (m *CanonicalPartSetHeader) Reset()
func (*CanonicalPartSetHeader) Size ¶
func (m *CanonicalPartSetHeader) Size() (n int)
func (*CanonicalPartSetHeader) String ¶
func (m *CanonicalPartSetHeader) String() string
func (*CanonicalPartSetHeader) Unmarshal ¶
func (m *CanonicalPartSetHeader) Unmarshal(dAtA []byte) error
func (*CanonicalPartSetHeader) XXX_DiscardUnknown ¶
func (m *CanonicalPartSetHeader) XXX_DiscardUnknown()
func (*CanonicalPartSetHeader) XXX_Marshal ¶
func (m *CanonicalPartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CanonicalPartSetHeader) XXX_Merge ¶
func (m *CanonicalPartSetHeader) XXX_Merge(src proto.Message)
func (*CanonicalPartSetHeader) XXX_Size ¶
func (m *CanonicalPartSetHeader) XXX_Size() int
func (*CanonicalPartSetHeader) XXX_Unmarshal ¶
func (m *CanonicalPartSetHeader) XXX_Unmarshal(b []byte) error
type CanonicalProposal ¶
type CanonicalProposal struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.types.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"` BlockID *CanonicalBlockID `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id,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) GetBlockID ¶
func (m *CanonicalProposal) GetBlockID() *CanonicalBlockID
func (*CanonicalProposal) GetChainID ¶
func (m *CanonicalProposal) GetChainID() string
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=tendermint.types.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"` BlockID *CanonicalBlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id,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) GetBlockID ¶
func (m *CanonicalVote) GetBlockID() *CanonicalBlockID
func (*CanonicalVote) GetChainID ¶
func (m *CanonicalVote) GetChainID() string
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"` BlockID BlockID `protobuf:"bytes,3,opt,name=block_id,json=blockId,proto3" json:"block_id"` Signatures []CommitSig `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures"` Hash []byte `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"` BitArray *bits.BitArray `protobuf:"bytes,6,opt,name=bit_array,json=bitArray,proto3" json:"bit_array,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Commit contains the evidence that a block was committed by a set of validators.
func (*Commit) Descriptor ¶
func (*Commit) GetBitArray ¶
func (*Commit) GetBlockID ¶
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 { BlockIdFlag BlockIDFlag `` /* 137-byte string literal not displayed */ 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CommitSig is a part of the Vote included in a Commit.
func (*CommitSig) Descriptor ¶
func (*CommitSig) GetBlockIdFlag ¶
func (m *CommitSig) GetBlockIdFlag() BlockIDFlag
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 ConflictingHeadersEvidence ¶
type ConflictingHeadersEvidence struct { H1 *SignedHeader `protobuf:"bytes,1,opt,name=h1,proto3" json:"h1,omitempty"` H2 *SignedHeader `protobuf:"bytes,2,opt,name=h2,proto3" json:"h2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConflictingHeadersEvidence) Descriptor ¶
func (*ConflictingHeadersEvidence) Descriptor() ([]byte, []int)
func (*ConflictingHeadersEvidence) GetH1 ¶
func (m *ConflictingHeadersEvidence) GetH1() *SignedHeader
func (*ConflictingHeadersEvidence) GetH2 ¶
func (m *ConflictingHeadersEvidence) GetH2() *SignedHeader
func (*ConflictingHeadersEvidence) ProtoMessage ¶
func (*ConflictingHeadersEvidence) ProtoMessage()
func (*ConflictingHeadersEvidence) Reset ¶
func (m *ConflictingHeadersEvidence) Reset()
func (*ConflictingHeadersEvidence) String ¶
func (m *ConflictingHeadersEvidence) String() string
func (*ConflictingHeadersEvidence) XXX_DiscardUnknown ¶
func (m *ConflictingHeadersEvidence) XXX_DiscardUnknown()
func (*ConflictingHeadersEvidence) XXX_Marshal ¶
func (m *ConflictingHeadersEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConflictingHeadersEvidence) XXX_Merge ¶
func (m *ConflictingHeadersEvidence) XXX_Merge(src proto.Message)
func (*ConflictingHeadersEvidence) XXX_Size ¶
func (m *ConflictingHeadersEvidence) XXX_Size() int
func (*ConflictingHeadersEvidence) XXX_Unmarshal ¶
func (m *ConflictingHeadersEvidence) XXX_Unmarshal(b []byte) error
type ConsensusParams ¶
type ConsensusParams struct { Block BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block"` Evidence EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence"` Validator ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConsensusParams contains consensus critical parameters that determine the validity of blocks.
func (*ConsensusParams) Descriptor ¶
func (*ConsensusParams) Descriptor() ([]byte, []int)
func (*ConsensusParams) Equal ¶
func (this *ConsensusParams) Equal(that interface{}) bool
func (*ConsensusParams) GetBlock ¶
func (m *ConsensusParams) GetBlock() BlockParams
func (*ConsensusParams) GetEvidence ¶
func (m *ConsensusParams) GetEvidence() EvidenceParams
func (*ConsensusParams) GetValidator ¶
func (m *ConsensusParams) GetValidator() ValidatorParams
func (*ConsensusParams) ProtoMessage ¶
func (*ConsensusParams) ProtoMessage()
func (*ConsensusParams) Reset ¶
func (m *ConsensusParams) Reset()
func (*ConsensusParams) String ¶
func (m *ConsensusParams) String() string
func (*ConsensusParams) XXX_DiscardUnknown ¶
func (m *ConsensusParams) XXX_DiscardUnknown()
func (*ConsensusParams) XXX_Marshal ¶
func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusParams) XXX_Merge ¶
func (m *ConsensusParams) XXX_Merge(src proto.Message)
func (*ConsensusParams) XXX_Size ¶
func (m *ConsensusParams) XXX_Size() int
func (*ConsensusParams) XXX_Unmarshal ¶
func (m *ConsensusParams) XXX_Unmarshal(b []byte) error
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"` // Volatile Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 DuplicateVoteEvidence ¶
type DuplicateVoteEvidence struct { PubKey *keys.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` VoteA *Vote `protobuf:"bytes,2,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"` VoteB *Vote `protobuf:"bytes,3,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DuplicateVoteEvidence contains evidence a validator signed two conflicting votes.
func (*DuplicateVoteEvidence) Descriptor ¶
func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int)
func (*DuplicateVoteEvidence) GetPubKey ¶
func (m *DuplicateVoteEvidence) GetPubKey() *keys.PublicKey
func (*DuplicateVoteEvidence) GetVoteA ¶
func (m *DuplicateVoteEvidence) GetVoteA() *Vote
func (*DuplicateVoteEvidence) GetVoteB ¶
func (m *DuplicateVoteEvidence) GetVoteB() *Vote
func (*DuplicateVoteEvidence) ProtoMessage ¶
func (*DuplicateVoteEvidence) ProtoMessage()
func (*DuplicateVoteEvidence) Reset ¶
func (m *DuplicateVoteEvidence) Reset()
func (*DuplicateVoteEvidence) String ¶
func (m *DuplicateVoteEvidence) String() string
func (*DuplicateVoteEvidence) XXX_DiscardUnknown ¶
func (m *DuplicateVoteEvidence) XXX_DiscardUnknown()
func (*DuplicateVoteEvidence) XXX_Marshal ¶
func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DuplicateVoteEvidence) XXX_Merge ¶
func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message)
func (*DuplicateVoteEvidence) XXX_Size ¶
func (m *DuplicateVoteEvidence) XXX_Size() int
func (*DuplicateVoteEvidence) XXX_Unmarshal ¶
func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error
type EventDataRoundState ¶
type EventDataRoundState 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 string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EventDataRoundState) Descriptor ¶
func (*EventDataRoundState) Descriptor() ([]byte, []int)
func (*EventDataRoundState) GetHeight ¶
func (m *EventDataRoundState) GetHeight() int64
func (*EventDataRoundState) GetRound ¶
func (m *EventDataRoundState) GetRound() int32
func (*EventDataRoundState) GetStep ¶
func (m *EventDataRoundState) GetStep() string
func (*EventDataRoundState) ProtoMessage ¶
func (*EventDataRoundState) ProtoMessage()
func (*EventDataRoundState) Reset ¶
func (m *EventDataRoundState) Reset()
func (*EventDataRoundState) String ¶
func (m *EventDataRoundState) String() string
func (*EventDataRoundState) XXX_DiscardUnknown ¶
func (m *EventDataRoundState) XXX_DiscardUnknown()
func (*EventDataRoundState) XXX_Marshal ¶
func (m *EventDataRoundState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDataRoundState) XXX_Merge ¶
func (m *EventDataRoundState) XXX_Merge(src proto.Message)
func (*EventDataRoundState) XXX_Size ¶
func (m *EventDataRoundState) XXX_Size() int
func (*EventDataRoundState) XXX_Unmarshal ¶
func (m *EventDataRoundState) XXX_Unmarshal(b []byte) error
type Evidence ¶
type Evidence struct { // Types that are valid to be assigned to Sum: // *Evidence_DuplicateVoteEvidence // *Evidence_ConflictingHeadersEvidence // *Evidence_LunaticValidatorEvidence // *Evidence_PotentialAmnesiaEvidence // *Evidence_MockEvidence // *Evidence_MockRandomEvidence Sum isEvidence_Sum `protobuf_oneof:"sum"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Evidence) Descriptor ¶
func (*Evidence) GetConflictingHeadersEvidence ¶
func (m *Evidence) GetConflictingHeadersEvidence() *ConflictingHeadersEvidence
func (*Evidence) GetDuplicateVoteEvidence ¶
func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence
func (*Evidence) GetLunaticValidatorEvidence ¶
func (m *Evidence) GetLunaticValidatorEvidence() *LunaticValidatorEvidence
func (*Evidence) GetMockEvidence ¶
func (m *Evidence) GetMockEvidence() *MockEvidence
func (*Evidence) GetMockRandomEvidence ¶
func (m *Evidence) GetMockRandomEvidence() *MockRandomEvidence
func (*Evidence) GetPotentialAmnesiaEvidence ¶
func (m *Evidence) GetPotentialAmnesiaEvidence() *PotentialAmnesiaEvidence
func (*Evidence) ProtoMessage ¶
func (*Evidence) ProtoMessage()
func (*Evidence) XXX_DiscardUnknown ¶
func (m *Evidence) XXX_DiscardUnknown()
func (*Evidence) XXX_Marshal ¶
func (*Evidence) XXX_OneofWrappers ¶
func (*Evidence) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Evidence) XXX_Unmarshal ¶
type EvidenceData ¶
type EvidenceData struct { Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EvidenceData contains any evidence of malicious wrong-doing by validators
func (*EvidenceData) Descriptor ¶
func (*EvidenceData) Descriptor() ([]byte, []int)
func (*EvidenceData) GetEvidence ¶
func (m *EvidenceData) GetEvidence() []Evidence
func (*EvidenceData) GetHash ¶
func (m *EvidenceData) GetHash() []byte
func (*EvidenceData) ProtoMessage ¶
func (*EvidenceData) ProtoMessage()
func (*EvidenceData) Reset ¶
func (m *EvidenceData) Reset()
func (*EvidenceData) String ¶
func (m *EvidenceData) String() string
func (*EvidenceData) XXX_DiscardUnknown ¶
func (m *EvidenceData) XXX_DiscardUnknown()
func (*EvidenceData) XXX_Marshal ¶
func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EvidenceData) XXX_Merge ¶
func (m *EvidenceData) XXX_Merge(src proto.Message)
func (*EvidenceData) XXX_Size ¶
func (m *EvidenceData) XXX_Size() int
func (*EvidenceData) XXX_Unmarshal ¶
func (m *EvidenceData) XXX_Unmarshal(b []byte) error
type EvidenceParams ¶
type EvidenceParams struct { // Max age of evidence, in blocks. // // The basic formula for calculating this is: MaxAgeDuration / {average block // time}. MaxAgeNumBlocks int64 `protobuf:"varint,1,opt,name=max_age_num_blocks,json=maxAgeNumBlocks,proto3" json:"max_age_num_blocks,omitempty"` // Max age of evidence, in time. // // It should correspond with an app's "unbonding period" or other similar // mechanism for handling [Nothing-At-Stake // attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). MaxAgeDuration time.Duration `protobuf:"bytes,2,opt,name=max_age_duration,json=maxAgeDuration,proto3,stdduration" json:"max_age_duration"` // This sets the maximum number of evidence that can be committed in a single block. // and should fall comfortably under the max block bytes when we consider the size of // each evidence (See MaxEvidenceBytes). The maximum number is MaxEvidencePerBlock. // Default is 50 MaxNum uint32 `protobuf:"varint,3,opt,name=max_num,json=maxNum,proto3" json:"max_num,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
EvidenceParams determine how we handle evidence of malfeasance.
func (*EvidenceParams) Descriptor ¶
func (*EvidenceParams) Descriptor() ([]byte, []int)
func (*EvidenceParams) Equal ¶
func (this *EvidenceParams) Equal(that interface{}) bool
func (*EvidenceParams) GetMaxAgeDuration ¶
func (m *EvidenceParams) GetMaxAgeDuration() time.Duration
func (*EvidenceParams) GetMaxAgeNumBlocks ¶
func (m *EvidenceParams) GetMaxAgeNumBlocks() int64
func (*EvidenceParams) GetMaxNum ¶
func (m *EvidenceParams) GetMaxNum() uint32
func (*EvidenceParams) ProtoMessage ¶
func (*EvidenceParams) ProtoMessage()
func (*EvidenceParams) Reset ¶
func (m *EvidenceParams) Reset()
func (*EvidenceParams) String ¶
func (m *EvidenceParams) String() string
func (*EvidenceParams) XXX_DiscardUnknown ¶
func (m *EvidenceParams) XXX_DiscardUnknown()
func (*EvidenceParams) XXX_Marshal ¶
func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EvidenceParams) XXX_Merge ¶
func (m *EvidenceParams) XXX_Merge(src proto.Message)
func (*EvidenceParams) XXX_Size ¶
func (m *EvidenceParams) XXX_Size() int
func (*EvidenceParams) XXX_Unmarshal ¶
func (m *EvidenceParams) XXX_Unmarshal(b []byte) error
type Evidence_ConflictingHeadersEvidence ¶
type Evidence_ConflictingHeadersEvidence struct {
ConflictingHeadersEvidence *ConflictingHeadersEvidence `` /* 147-byte string literal not displayed */
}
type Evidence_DuplicateVoteEvidence ¶
type Evidence_DuplicateVoteEvidence struct {
DuplicateVoteEvidence *DuplicateVoteEvidence `` /* 132-byte string literal not displayed */
}
type Evidence_LunaticValidatorEvidence ¶
type Evidence_LunaticValidatorEvidence struct {
LunaticValidatorEvidence *LunaticValidatorEvidence `` /* 141-byte string literal not displayed */
}
type Evidence_MockEvidence ¶
type Evidence_MockEvidence struct {
MockEvidence *MockEvidence `protobuf:"bytes,5,opt,name=mock_evidence,json=mockEvidence,proto3,oneof" json:"mock_evidence,omitempty"`
}
type Evidence_MockRandomEvidence ¶
type Evidence_MockRandomEvidence struct {
MockRandomEvidence *MockRandomEvidence `protobuf:"bytes,6,opt,name=mock_random_evidence,json=mockRandomEvidence,proto3,oneof" json:"mock_random_evidence,omitempty"`
}
type Evidence_PotentialAmnesiaEvidence ¶
type Evidence_PotentialAmnesiaEvidence struct {
PotentialAmnesiaEvidence *PotentialAmnesiaEvidence `` /* 141-byte string literal not displayed */
}
type HashedParams ¶
type HashedParams struct { BlockMaxBytes int64 `protobuf:"varint,1,opt,name=block_max_bytes,json=blockMaxBytes,proto3" json:"block_max_bytes,omitempty"` BlockMaxGas int64 `protobuf:"varint,2,opt,name=block_max_gas,json=blockMaxGas,proto3" json:"block_max_gas,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
HashedParams is a subset of ConsensusParams. It is amino encoded and hashed into the Header.ConsensusHash.
func (*HashedParams) Descriptor ¶
func (*HashedParams) Descriptor() ([]byte, []int)
func (*HashedParams) Equal ¶
func (this *HashedParams) Equal(that interface{}) bool
func (*HashedParams) GetBlockMaxBytes ¶
func (m *HashedParams) GetBlockMaxBytes() int64
func (*HashedParams) GetBlockMaxGas ¶
func (m *HashedParams) GetBlockMaxGas() int64
func (*HashedParams) ProtoMessage ¶
func (*HashedParams) ProtoMessage()
func (*HashedParams) Reset ¶
func (m *HashedParams) Reset()
func (*HashedParams) String ¶
func (m *HashedParams) String() string
func (*HashedParams) XXX_DiscardUnknown ¶
func (m *HashedParams) XXX_DiscardUnknown()
func (*HashedParams) XXX_Marshal ¶
func (m *HashedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HashedParams) XXX_Merge ¶
func (m *HashedParams) XXX_Merge(src proto.Message)
func (*HashedParams) XXX_Size ¶
func (m *HashedParams) XXX_Size() int
func (*HashedParams) XXX_Unmarshal ¶
func (m *HashedParams) XXX_Unmarshal(b []byte) error
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 LastBlockID BlockID `protobuf:"bytes,5,opt,name=last_block_id,json=lastBlockId,proto3" json:"last_block_id"` // 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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) GetLastBlockID ¶
func (*Header) GetLastCommitHash ¶
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 LunaticValidatorEvidence ¶
type LunaticValidatorEvidence struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` InvalidHeaderField string `protobuf:"bytes,3,opt,name=invalid_header_field,json=invalidHeaderField,proto3" json:"invalid_header_field,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LunaticValidatorEvidence) Descriptor ¶
func (*LunaticValidatorEvidence) Descriptor() ([]byte, []int)
func (*LunaticValidatorEvidence) GetHeader ¶
func (m *LunaticValidatorEvidence) GetHeader() *Header
func (*LunaticValidatorEvidence) GetInvalidHeaderField ¶
func (m *LunaticValidatorEvidence) GetInvalidHeaderField() string
func (*LunaticValidatorEvidence) GetVote ¶
func (m *LunaticValidatorEvidence) GetVote() *Vote
func (*LunaticValidatorEvidence) ProtoMessage ¶
func (*LunaticValidatorEvidence) ProtoMessage()
func (*LunaticValidatorEvidence) Reset ¶
func (m *LunaticValidatorEvidence) Reset()
func (*LunaticValidatorEvidence) String ¶
func (m *LunaticValidatorEvidence) String() string
func (*LunaticValidatorEvidence) XXX_DiscardUnknown ¶
func (m *LunaticValidatorEvidence) XXX_DiscardUnknown()
func (*LunaticValidatorEvidence) XXX_Marshal ¶
func (m *LunaticValidatorEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LunaticValidatorEvidence) XXX_Merge ¶
func (m *LunaticValidatorEvidence) XXX_Merge(src proto.Message)
func (*LunaticValidatorEvidence) XXX_Size ¶
func (m *LunaticValidatorEvidence) XXX_Size() int
func (*LunaticValidatorEvidence) XXX_Unmarshal ¶
func (m *LunaticValidatorEvidence) XXX_Unmarshal(b []byte) error
type MockEvidence ¶
type MockEvidence struct { EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"` EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"` EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MockEvidence is used for testing pruposes
func (*MockEvidence) Descriptor ¶
func (*MockEvidence) Descriptor() ([]byte, []int)
func (*MockEvidence) GetEvidenceAddress ¶
func (m *MockEvidence) GetEvidenceAddress() []byte
func (*MockEvidence) GetEvidenceHeight ¶
func (m *MockEvidence) GetEvidenceHeight() int64
func (*MockEvidence) GetEvidenceTime ¶
func (m *MockEvidence) GetEvidenceTime() time.Time
func (*MockEvidence) ProtoMessage ¶
func (*MockEvidence) ProtoMessage()
func (*MockEvidence) Reset ¶
func (m *MockEvidence) Reset()
func (*MockEvidence) String ¶
func (m *MockEvidence) String() string
func (*MockEvidence) XXX_DiscardUnknown ¶
func (m *MockEvidence) XXX_DiscardUnknown()
func (*MockEvidence) XXX_Marshal ¶
func (m *MockEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MockEvidence) XXX_Merge ¶
func (m *MockEvidence) XXX_Merge(src proto.Message)
func (*MockEvidence) XXX_Size ¶
func (m *MockEvidence) XXX_Size() int
func (*MockEvidence) XXX_Unmarshal ¶
func (m *MockEvidence) XXX_Unmarshal(b []byte) error
type MockRandomEvidence ¶
type MockRandomEvidence struct { EvidenceHeight int64 `protobuf:"varint,1,opt,name=evidence_height,json=evidenceHeight,proto3" json:"evidence_height,omitempty"` EvidenceTime time.Time `protobuf:"bytes,2,opt,name=evidence_time,json=evidenceTime,proto3,stdtime" json:"evidence_time"` EvidenceAddress []byte `protobuf:"bytes,3,opt,name=evidence_address,json=evidenceAddress,proto3" json:"evidence_address,omitempty"` RandBytes []byte `protobuf:"bytes,4,opt,name=rand_bytes,json=randBytes,proto3" json:"rand_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MockRandomEvidence) Descriptor ¶
func (*MockRandomEvidence) Descriptor() ([]byte, []int)
func (*MockRandomEvidence) GetEvidenceAddress ¶
func (m *MockRandomEvidence) GetEvidenceAddress() []byte
func (*MockRandomEvidence) GetEvidenceHeight ¶
func (m *MockRandomEvidence) GetEvidenceHeight() int64
func (*MockRandomEvidence) GetEvidenceTime ¶
func (m *MockRandomEvidence) GetEvidenceTime() time.Time
func (*MockRandomEvidence) GetRandBytes ¶
func (m *MockRandomEvidence) GetRandBytes() []byte
func (*MockRandomEvidence) ProtoMessage ¶
func (*MockRandomEvidence) ProtoMessage()
func (*MockRandomEvidence) Reset ¶
func (m *MockRandomEvidence) Reset()
func (*MockRandomEvidence) String ¶
func (m *MockRandomEvidence) String() string
func (*MockRandomEvidence) XXX_DiscardUnknown ¶
func (m *MockRandomEvidence) XXX_DiscardUnknown()
func (*MockRandomEvidence) XXX_Marshal ¶
func (m *MockRandomEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MockRandomEvidence) XXX_Merge ¶
func (m *MockRandomEvidence) XXX_Merge(src proto.Message)
func (*MockRandomEvidence) XXX_Size ¶
func (m *MockRandomEvidence) XXX_Size() int
func (*MockRandomEvidence) XXX_Unmarshal ¶
func (m *MockRandomEvidence) 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 merkle.SimpleProof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Part) Descriptor ¶
func (*Part) GetProof ¶
func (m *Part) GetProof() merkle.SimpleProof
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 int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PartsetHeader
func (*PartSetHeader) Descriptor ¶
func (*PartSetHeader) Descriptor() ([]byte, []int)
func (*PartSetHeader) GetHash ¶
func (m *PartSetHeader) GetHash() []byte
func (*PartSetHeader) GetTotal ¶
func (m *PartSetHeader) GetTotal() int64
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 PotentialAmnesiaEvidence ¶
type PotentialAmnesiaEvidence struct { VoteA *Vote `protobuf:"bytes,1,opt,name=vote_a,json=voteA,proto3" json:"vote_a,omitempty"` VoteB *Vote `protobuf:"bytes,2,opt,name=vote_b,json=voteB,proto3" json:"vote_b,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PotentialAmnesiaEvidence) Descriptor ¶
func (*PotentialAmnesiaEvidence) Descriptor() ([]byte, []int)
func (*PotentialAmnesiaEvidence) GetVoteA ¶
func (m *PotentialAmnesiaEvidence) GetVoteA() *Vote
func (*PotentialAmnesiaEvidence) GetVoteB ¶
func (m *PotentialAmnesiaEvidence) GetVoteB() *Vote
func (*PotentialAmnesiaEvidence) ProtoMessage ¶
func (*PotentialAmnesiaEvidence) ProtoMessage()
func (*PotentialAmnesiaEvidence) Reset ¶
func (m *PotentialAmnesiaEvidence) Reset()
func (*PotentialAmnesiaEvidence) String ¶
func (m *PotentialAmnesiaEvidence) String() string
func (*PotentialAmnesiaEvidence) XXX_DiscardUnknown ¶
func (m *PotentialAmnesiaEvidence) XXX_DiscardUnknown()
func (*PotentialAmnesiaEvidence) XXX_Marshal ¶
func (m *PotentialAmnesiaEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PotentialAmnesiaEvidence) XXX_Merge ¶
func (m *PotentialAmnesiaEvidence) XXX_Merge(src proto.Message)
func (*PotentialAmnesiaEvidence) XXX_Size ¶
func (m *PotentialAmnesiaEvidence) XXX_Size() int
func (*PotentialAmnesiaEvidence) XXX_Unmarshal ¶
func (m *PotentialAmnesiaEvidence) XXX_Unmarshal(b []byte) error
type ProofOfLockChange ¶
type ProofOfLockChange struct { Votes []Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes"` PubKey keys.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProofOfLockChange) Descriptor ¶
func (*ProofOfLockChange) Descriptor() ([]byte, []int)
func (*ProofOfLockChange) GetPubKey ¶
func (m *ProofOfLockChange) GetPubKey() keys.PublicKey
func (*ProofOfLockChange) GetVotes ¶
func (m *ProofOfLockChange) GetVotes() []Vote
func (*ProofOfLockChange) ProtoMessage ¶
func (*ProofOfLockChange) ProtoMessage()
func (*ProofOfLockChange) Reset ¶
func (m *ProofOfLockChange) Reset()
func (*ProofOfLockChange) String ¶
func (m *ProofOfLockChange) String() string
func (*ProofOfLockChange) XXX_DiscardUnknown ¶
func (m *ProofOfLockChange) XXX_DiscardUnknown()
func (*ProofOfLockChange) XXX_Marshal ¶
func (m *ProofOfLockChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProofOfLockChange) XXX_Merge ¶
func (m *ProofOfLockChange) XXX_Merge(src proto.Message)
func (*ProofOfLockChange) XXX_Size ¶
func (m *ProofOfLockChange) XXX_Size() int
func (*ProofOfLockChange) XXX_Unmarshal ¶
func (m *ProofOfLockChange) XXX_Unmarshal(b []byte) error
type Proposal ¶
type Proposal struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.proto.types.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"` PolRound int32 `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"` BlockID BlockID `protobuf:"bytes,5,opt,name=block_id,json=blockId,proto3" json:"block_id"` Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"` Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proposal) Descriptor ¶
func (*Proposal) GetBlockID ¶
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 SignedHeader ¶
type SignedHeader struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Commit *Commit `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedHeader) Descriptor ¶
func (*SignedHeader) Descriptor() ([]byte, []int)
func (*SignedHeader) GetCommit ¶
func (m *SignedHeader) GetCommit() *Commit
func (*SignedHeader) GetHeader ¶
func (m *SignedHeader) GetHeader() *Header
func (*SignedHeader) Marshal ¶
func (m *SignedHeader) Marshal() (dAtA []byte, err error)
func (*SignedHeader) MarshalToSizedBuffer ¶
func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SignedHeader) ProtoMessage ¶
func (*SignedHeader) ProtoMessage()
func (*SignedHeader) Reset ¶
func (m *SignedHeader) Reset()
func (*SignedHeader) Size ¶
func (m *SignedHeader) Size() (n int)
func (*SignedHeader) String ¶
func (m *SignedHeader) String() string
func (*SignedHeader) Unmarshal ¶
func (m *SignedHeader) Unmarshal(dAtA []byte) error
func (*SignedHeader) XXX_DiscardUnknown ¶
func (m *SignedHeader) XXX_DiscardUnknown()
func (*SignedHeader) XXX_Marshal ¶
func (m *SignedHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedHeader) XXX_Merge ¶
func (m *SignedHeader) XXX_Merge(src proto.Message)
func (*SignedHeader) XXX_Size ¶
func (m *SignedHeader) XXX_Size() int
func (*SignedHeader) XXX_Unmarshal ¶
func (m *SignedHeader) XXX_Unmarshal(b []byte) error
type SignedMsgType ¶
type SignedMsgType int32
SignedMsgType is a type of signed message in the consensus.
const ( SIGNED_MSG_TYPE_UNKNOWN SignedMsgType = 0 PrevoteType SignedMsgType = 1 PrecommitType SignedMsgType = 2 ProposalType SignedMsgType = 3 )
const (
UnknownType SignedMsgType = 0
)
func (SignedMsgType) EnumDescriptor ¶
func (SignedMsgType) EnumDescriptor() ([]byte, []int)
type SimpleValidator ¶
type SimpleValidator struct { PubKey *pc.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() *pc.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 keys.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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ValidatorParams ¶
type ValidatorParams struct { PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.
func (*ValidatorParams) Descriptor ¶
func (*ValidatorParams) Descriptor() ([]byte, []int)
func (*ValidatorParams) Equal ¶
func (this *ValidatorParams) Equal(that interface{}) bool
func (*ValidatorParams) GetPubKeyTypes ¶
func (m *ValidatorParams) GetPubKeyTypes() []string
func (*ValidatorParams) ProtoMessage ¶
func (*ValidatorParams) ProtoMessage()
func (*ValidatorParams) Reset ¶
func (m *ValidatorParams) Reset()
func (*ValidatorParams) String ¶
func (m *ValidatorParams) String() string
func (*ValidatorParams) XXX_DiscardUnknown ¶
func (m *ValidatorParams) XXX_DiscardUnknown()
func (*ValidatorParams) XXX_Marshal ¶
func (m *ValidatorParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorParams) XXX_Merge ¶
func (m *ValidatorParams) XXX_Merge(src proto.Message)
func (*ValidatorParams) XXX_Size ¶
func (m *ValidatorParams) XXX_Size() int
func (*ValidatorParams) XXX_Unmarshal ¶
func (m *ValidatorParams) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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=tendermint.proto.types.SignedMsgType" json:"type,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Round int64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` BlockID BlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"` 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 int64 `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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Vote represents a prevote, precommit, or commit vote from validators for consensus.
func (*Vote) Descriptor ¶
func (*Vote) GetBlockID ¶
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()