import "github.com/tendermint/tendermint/proto/tendermint/types"
block.pb.go canonical.pb.go events.pb.go evidence.pb.go params.pb.go types.pb.go validator.pb.go
var ( ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthEvidence = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvidence = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvidence = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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: "BLOCK_ID_FLAG_UNKNOWN", 1: "BLOCK_ID_FLAG_ABSENT", 2: "BLOCK_ID_FLAG_COMMIT", 3: "BLOCK_ID_FLAG_NIL", }
var BlockIDFlag_value = map[string]int32{ "BLOCK_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: "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, }
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 EvidenceList `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"` }
func (m *Block) GetEvidence() EvidenceList
type BlockID struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` PartSetHeader PartSetHeader `protobuf:"bytes,2,opt,name=part_set_header,json=partSetHeader,proto3" json:"part_set_header"` }
BlockID
func (m *BlockID) GetPartSetHeader() PartSetHeader
BlockIdFlag indicates which BlcokID the signature is for
const ( BlockIDFlagUnknown BlockIDFlag = 0 BlockIDFlagAbsent BlockIDFlag = 1 BlockIDFlagCommit BlockIDFlag = 2 BlockIDFlagNil BlockIDFlag = 3 )
func (BlockIDFlag) EnumDescriptor() ([]byte, []int)
func (x BlockIDFlag) String() string
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"` }
type BlockParams struct { // Max block size, in bytes. // Note: must be greater than 0 MaxBytes int64 `protobuf:"varint,1,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` // Max gas per block. // Note: must be greater or equal to -1 MaxGas int64 `protobuf:"varint,2,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"` // This parameter is unused. TimeIotaMs int64 `protobuf:"varint,3,opt,name=time_iota_ms,json=timeIotaMs,proto3" json:"time_iota_ms,omitempty"` }
BlockParams contains limits on the block size.
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 (m *BlockParams) Marshal() (dAtA []byte, err error)
func (m *BlockParams) MarshalTo(dAtA []byte) (int, error)
func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockParams) ProtoMessage()
func (m *BlockParams) Reset()
func (m *BlockParams) Size() (n int)
func (m *BlockParams) String() string
func (m *BlockParams) Unmarshal(dAtA []byte) error
func (m *BlockParams) XXX_DiscardUnknown()
func (m *BlockParams) XXX_Merge(src proto.Message)
func (m *BlockParams) XXX_Size() int
func (m *BlockParams) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *CanonicalBlockID) XXX_Size() int
func (m *CanonicalBlockID) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *CanonicalPartSetHeader) XXX_Size() int
func (m *CanonicalPartSetHeader) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *CanonicalProposal) XXX_Size() int
func (m *CanonicalProposal) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *CanonicalVote) XXX_Size() int
func (m *CanonicalVote) XXX_Unmarshal(b []byte) error
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"` }
Commit contains the evidence that a block was committed by a set of validators.
type CommitSig struct { BlockIdFlag BlockIDFlag `protobuf:"varint,1,opt,name=block_id_flag,json=blockIdFlag,proto3,enum=tendermint.types.BlockIDFlag" json:"block_id_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 (m *CommitSig) GetBlockIdFlag() BlockIDFlag
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"` Version VersionParams `protobuf:"bytes,4,opt,name=version,proto3" json:"version"` }
ConsensusParams contains consensus critical parameters that determine the validity of blocks.
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 (m *ConsensusParams) GetVersion() VersionParams
func (m *ConsensusParams) Marshal() (dAtA []byte, err error)
func (m *ConsensusParams) MarshalTo(dAtA []byte) (int, error)
func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusParams) ProtoMessage()
func (m *ConsensusParams) Reset()
func (m *ConsensusParams) Size() (n int)
func (m *ConsensusParams) String() string
func (m *ConsensusParams) Unmarshal(dAtA []byte) error
func (m *ConsensusParams) XXX_DiscardUnknown()
func (m *ConsensusParams) XXX_Merge(src proto.Message)
func (m *ConsensusParams) XXX_Size() int
func (m *ConsensusParams) XXX_Unmarshal(b []byte) error
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
type DuplicateVoteEvidence 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"` TotalVotingPower int64 `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` ValidatorPower int64 `protobuf:"varint,4,opt,name=validator_power,json=validatorPower,proto3" json:"validator_power,omitempty"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` }
DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes.
func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int)
func (m *DuplicateVoteEvidence) GetTimestamp() time.Time
func (m *DuplicateVoteEvidence) GetTotalVotingPower() int64
func (m *DuplicateVoteEvidence) GetValidatorPower() int64
func (m *DuplicateVoteEvidence) GetVoteA() *Vote
func (m *DuplicateVoteEvidence) GetVoteB() *Vote
func (m *DuplicateVoteEvidence) Marshal() (dAtA []byte, err error)
func (m *DuplicateVoteEvidence) MarshalTo(dAtA []byte) (int, error)
func (m *DuplicateVoteEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DuplicateVoteEvidence) ProtoMessage()
func (m *DuplicateVoteEvidence) Reset()
func (m *DuplicateVoteEvidence) Size() (n int)
func (m *DuplicateVoteEvidence) String() string
func (m *DuplicateVoteEvidence) Unmarshal(dAtA []byte) error
func (m *DuplicateVoteEvidence) XXX_DiscardUnknown()
func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message)
func (m *DuplicateVoteEvidence) XXX_Size() int
func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error
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"` }
func (*EventDataRoundState) Descriptor() ([]byte, []int)
func (m *EventDataRoundState) GetHeight() int64
func (m *EventDataRoundState) GetRound() int32
func (m *EventDataRoundState) GetStep() string
func (m *EventDataRoundState) Marshal() (dAtA []byte, err error)
func (m *EventDataRoundState) MarshalTo(dAtA []byte) (int, error)
func (m *EventDataRoundState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDataRoundState) ProtoMessage()
func (m *EventDataRoundState) Reset()
func (m *EventDataRoundState) Size() (n int)
func (m *EventDataRoundState) String() string
func (m *EventDataRoundState) Unmarshal(dAtA []byte) error
func (m *EventDataRoundState) XXX_DiscardUnknown()
func (m *EventDataRoundState) XXX_Merge(src proto.Message)
func (m *EventDataRoundState) XXX_Size() int
func (m *EventDataRoundState) XXX_Unmarshal(b []byte) error
type Evidence struct { // Types that are valid to be assigned to Sum: // *Evidence_DuplicateVoteEvidence // *Evidence_LightClientAttackEvidence Sum isEvidence_Sum `protobuf_oneof:"sum"` }
func (m *Evidence) GetDuplicateVoteEvidence() *DuplicateVoteEvidence
func (m *Evidence) GetLightClientAttackEvidence() *LightClientAttackEvidence
XXX_OneofWrappers is for the internal use of the proto package.
type EvidenceList struct { Evidence []Evidence `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence"` }
func (*EvidenceList) Descriptor() ([]byte, []int)
func (m *EvidenceList) GetEvidence() []Evidence
func (m *EvidenceList) Marshal() (dAtA []byte, err error)
func (m *EvidenceList) MarshalTo(dAtA []byte) (int, error)
func (m *EvidenceList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EvidenceList) ProtoMessage()
func (m *EvidenceList) Reset()
func (m *EvidenceList) Size() (n int)
func (m *EvidenceList) String() string
func (m *EvidenceList) Unmarshal(dAtA []byte) error
func (m *EvidenceList) XXX_DiscardUnknown()
func (m *EvidenceList) XXX_Merge(src proto.Message)
func (m *EvidenceList) XXX_Size() int
func (m *EvidenceList) XXX_Unmarshal(b []byte) error
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 size of total evidence in bytes that can be committed in a single block. // and should fall comfortably under the max block bytes. // Default is 1048576 or 1MB MaxBytes int64 `protobuf:"varint,3,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"` }
EvidenceParams determine how we handle evidence of malfeasance.
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) GetMaxBytes() int64
func (m *EvidenceParams) Marshal() (dAtA []byte, err error)
func (m *EvidenceParams) MarshalTo(dAtA []byte) (int, error)
func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EvidenceParams) ProtoMessage()
func (m *EvidenceParams) Reset()
func (m *EvidenceParams) Size() (n int)
func (m *EvidenceParams) String() string
func (m *EvidenceParams) Unmarshal(dAtA []byte) error
func (m *EvidenceParams) XXX_DiscardUnknown()
func (m *EvidenceParams) XXX_Merge(src proto.Message)
func (m *EvidenceParams) XXX_Size() int
func (m *EvidenceParams) XXX_Unmarshal(b []byte) error
type Evidence_DuplicateVoteEvidence struct { DuplicateVoteEvidence *DuplicateVoteEvidence `protobuf:"bytes,1,opt,name=duplicate_vote_evidence,json=duplicateVoteEvidence,proto3,oneof" json:"duplicate_vote_evidence,omitempty"` }
func (m *Evidence_DuplicateVoteEvidence) MarshalTo(dAtA []byte) (int, error)
func (m *Evidence_DuplicateVoteEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (m *Evidence_DuplicateVoteEvidence) Size() (n int)
type Evidence_LightClientAttackEvidence struct { LightClientAttackEvidence *LightClientAttackEvidence `protobuf:"bytes,2,opt,name=light_client_attack_evidence,json=lightClientAttackEvidence,proto3,oneof" json:"light_client_attack_evidence,omitempty"` }
func (m *Evidence_LightClientAttackEvidence) MarshalTo(dAtA []byte) (int, error)
func (m *Evidence_LightClientAttackEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (m *Evidence_LightClientAttackEvidence) Size() (n int)
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"` }
HashedParams is a subset of ConsensusParams.
It is hashed into the Header.ConsensusHash.
func (*HashedParams) Descriptor() ([]byte, []int)
func (this *HashedParams) Equal(that interface{}) bool
func (m *HashedParams) GetBlockMaxBytes() int64
func (m *HashedParams) GetBlockMaxGas() int64
func (m *HashedParams) Marshal() (dAtA []byte, err error)
func (m *HashedParams) MarshalTo(dAtA []byte) (int, error)
func (m *HashedParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HashedParams) ProtoMessage()
func (m *HashedParams) Reset()
func (m *HashedParams) Size() (n int)
func (m *HashedParams) String() string
func (m *HashedParams) Unmarshal(dAtA []byte) error
func (m *HashedParams) XXX_DiscardUnknown()
func (m *HashedParams) XXX_Merge(src proto.Message)
func (m *HashedParams) XXX_Size() int
func (m *HashedParams) XXX_Unmarshal(b []byte) error
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"` }
Header defines the structure of a Tendermint block header.
type LightBlock struct { SignedHeader *SignedHeader `protobuf:"bytes,1,opt,name=signed_header,json=signedHeader,proto3" json:"signed_header,omitempty"` ValidatorSet *ValidatorSet `protobuf:"bytes,2,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` }
func (*LightBlock) Descriptor() ([]byte, []int)
func (m *LightBlock) GetSignedHeader() *SignedHeader
func (m *LightBlock) GetValidatorSet() *ValidatorSet
func (m *LightBlock) Marshal() (dAtA []byte, err error)
func (m *LightBlock) MarshalTo(dAtA []byte) (int, error)
func (m *LightBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LightBlock) ProtoMessage()
func (m *LightBlock) Reset()
func (m *LightBlock) Size() (n int)
func (m *LightBlock) String() string
func (m *LightBlock) Unmarshal(dAtA []byte) error
func (m *LightBlock) XXX_DiscardUnknown()
func (m *LightBlock) XXX_Merge(src proto.Message)
func (m *LightBlock) XXX_Size() int
func (m *LightBlock) XXX_Unmarshal(b []byte) error
type LightClientAttackEvidence struct { ConflictingBlock *LightBlock `protobuf:"bytes,1,opt,name=conflicting_block,json=conflictingBlock,proto3" json:"conflicting_block,omitempty"` CommonHeight int64 `protobuf:"varint,2,opt,name=common_height,json=commonHeight,proto3" json:"common_height,omitempty"` ByzantineValidators []*Validator `protobuf:"bytes,3,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators,omitempty"` TotalVotingPower int64 `protobuf:"varint,4,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` Timestamp time.Time `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"` }
LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client.
func (*LightClientAttackEvidence) Descriptor() ([]byte, []int)
func (m *LightClientAttackEvidence) GetByzantineValidators() []*Validator
func (m *LightClientAttackEvidence) GetCommonHeight() int64
func (m *LightClientAttackEvidence) GetConflictingBlock() *LightBlock
func (m *LightClientAttackEvidence) GetTimestamp() time.Time
func (m *LightClientAttackEvidence) GetTotalVotingPower() int64
func (m *LightClientAttackEvidence) Marshal() (dAtA []byte, err error)
func (m *LightClientAttackEvidence) MarshalTo(dAtA []byte) (int, error)
func (m *LightClientAttackEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LightClientAttackEvidence) ProtoMessage()
func (m *LightClientAttackEvidence) Reset()
func (m *LightClientAttackEvidence) Size() (n int)
func (m *LightClientAttackEvidence) String() string
func (m *LightClientAttackEvidence) Unmarshal(dAtA []byte) error
func (m *LightClientAttackEvidence) XXX_DiscardUnknown()
func (m *LightClientAttackEvidence) XXX_Merge(src proto.Message)
func (m *LightClientAttackEvidence) XXX_Size() int
func (m *LightClientAttackEvidence) XXX_Unmarshal(b []byte) error
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"` }
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() ([]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_Merge(src proto.Message)
func (m *PartSetHeader) XXX_Size() int
func (m *PartSetHeader) XXX_Unmarshal(b []byte) error
type Proposal struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.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"` }
func (m *Proposal) GetType() SignedMsgType
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"` }
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_Merge(src proto.Message)
func (m *SignedHeader) XXX_Size() int
func (m *SignedHeader) XXX_Unmarshal(b []byte) error
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() ([]byte, []int)
func (x SignedMsgType) String() string
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() ([]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_Merge(src proto.Message)
func (m *SimpleValidator) XXX_Size() int
func (m *SimpleValidator) XXX_Unmarshal(b []byte) error
type TxProof struct { RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Proof *crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` }
TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
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"` }
type ValidatorParams struct { PubKeyTypes []string `protobuf:"bytes,1,rep,name=pub_key_types,json=pubKeyTypes,proto3" json:"pub_key_types,omitempty"` }
ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.
func NewPopulatedValidatorParams(r randyParams, easy bool) *ValidatorParams
func (*ValidatorParams) Descriptor() ([]byte, []int)
func (this *ValidatorParams) Equal(that interface{}) bool
func (m *ValidatorParams) GetPubKeyTypes() []string
func (m *ValidatorParams) Marshal() (dAtA []byte, err error)
func (m *ValidatorParams) MarshalTo(dAtA []byte) (int, error)
func (m *ValidatorParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorParams) ProtoMessage()
func (m *ValidatorParams) Reset()
func (m *ValidatorParams) Size() (n int)
func (m *ValidatorParams) String() string
func (m *ValidatorParams) Unmarshal(dAtA []byte) error
func (m *ValidatorParams) XXX_DiscardUnknown()
func (m *ValidatorParams) XXX_Merge(src proto.Message)
func (m *ValidatorParams) XXX_Size() int
func (m *ValidatorParams) XXX_Unmarshal(b []byte) error
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() ([]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_Merge(src proto.Message)
func (m *ValidatorSet) XXX_Size() int
func (m *ValidatorSet) XXX_Unmarshal(b []byte) error
type VersionParams struct { AppVersion uint64 `protobuf:"varint,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"` }
VersionParams contains the ABCI application version.
func NewPopulatedVersionParams(r randyParams, easy bool) *VersionParams
func (*VersionParams) Descriptor() ([]byte, []int)
func (this *VersionParams) Equal(that interface{}) bool
func (m *VersionParams) GetAppVersion() uint64
func (m *VersionParams) Marshal() (dAtA []byte, err error)
func (m *VersionParams) MarshalTo(dAtA []byte) (int, error)
func (m *VersionParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VersionParams) ProtoMessage()
func (m *VersionParams) Reset()
func (m *VersionParams) Size() (n int)
func (m *VersionParams) String() string
func (m *VersionParams) Unmarshal(dAtA []byte) error
func (m *VersionParams) XXX_DiscardUnknown()
func (m *VersionParams) XXX_Merge(src proto.Message)
func (m *VersionParams) XXX_Size() int
func (m *VersionParams) XXX_Unmarshal(b []byte) error
type Vote struct { Type SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=tendermint.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"` 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 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 (m *Vote) GetType() SignedMsgType
Package types imports 12 packages (graph) and is imported by 79 packages. Updated 2021-01-22. Refresh now. Tools for package owners.