Documentation ¶
Index ¶
- Variables
- func PubKeyToProto(k crypto.PubKey) (types.PublicKey, 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) 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_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 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 (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_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 Evidence
- func (*Evidence) Descriptor() ([]byte, []int)
- func (m *Evidence) GetHeight() uint64
- func (m *Evidence) GetTime() time.Time
- func (m *Evidence) GetTotalVotingPower() int64
- func (m *Evidence) GetType() EvidenceType
- func (m *Evidence) GetValidator() Validator
- func (m *Evidence) Marshal() (dAtA []byte, err error)
- func (m *Evidence) MarshalTo(dAtA []byte) (int, error)
- func (m *Evidence) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Evidence) ProtoMessage()
- func (m *Evidence) Reset()
- func (m *Evidence) Size() (n int)
- func (m *Evidence) String() string
- func (m *Evidence) Unmarshal(dAtA []byte) error
- 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 (m *Evidence) XXX_Size() int
- func (m *Evidence) 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) 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_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 EvidenceType
- type LastCommitInfo
- func (*LastCommitInfo) Descriptor() ([]byte, []int)
- func (m *LastCommitInfo) GetRound() int32
- func (m *LastCommitInfo) GetVotes() []VoteInfo
- func (m *LastCommitInfo) Marshal() (dAtA []byte, err error)
- func (m *LastCommitInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LastCommitInfo) ProtoMessage()
- func (m *LastCommitInfo) Reset()
- func (m *LastCommitInfo) Size() (n int)
- func (m *LastCommitInfo) String() string
- func (m *LastCommitInfo) Unmarshal(dAtA []byte) error
- func (m *LastCommitInfo) XXX_DiscardUnknown()
- func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LastCommitInfo) XXX_Merge(src proto.Message)
- func (m *LastCommitInfo) XXX_Size() int
- func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error
- type RequestBeginBlockExtra
- func (*RequestBeginBlockExtra) Descriptor() ([]byte, []int)
- func (m *RequestBeginBlockExtra) GetByzantineValidators() []Evidence
- func (m *RequestBeginBlockExtra) GetLastCommitInfo() LastCommitInfo
- func (m *RequestBeginBlockExtra) Marshal() (dAtA []byte, err error)
- func (m *RequestBeginBlockExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *RequestBeginBlockExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RequestBeginBlockExtra) ProtoMessage()
- func (m *RequestBeginBlockExtra) Reset()
- func (m *RequestBeginBlockExtra) Size() (n int)
- func (m *RequestBeginBlockExtra) String() string
- func (m *RequestBeginBlockExtra) Unmarshal(dAtA []byte) error
- func (m *RequestBeginBlockExtra) XXX_DiscardUnknown()
- func (m *RequestBeginBlockExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestBeginBlockExtra) XXX_Merge(src proto.Message)
- func (m *RequestBeginBlockExtra) XXX_Size() int
- func (m *RequestBeginBlockExtra) XXX_Unmarshal(b []byte) error
- type RequestInitLedgerExtra
- func (*RequestInitLedgerExtra) Descriptor() ([]byte, []int)
- func (m *RequestInitLedgerExtra) GetConsensusParams() *ConsensusParams
- func (m *RequestInitLedgerExtra) GetValidators() []ValidatorUpdate
- func (m *RequestInitLedgerExtra) Marshal() (dAtA []byte, err error)
- func (m *RequestInitLedgerExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *RequestInitLedgerExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RequestInitLedgerExtra) ProtoMessage()
- func (m *RequestInitLedgerExtra) Reset()
- func (m *RequestInitLedgerExtra) Size() (n int)
- func (m *RequestInitLedgerExtra) String() string
- func (m *RequestInitLedgerExtra) Unmarshal(dAtA []byte) error
- func (m *RequestInitLedgerExtra) XXX_DiscardUnknown()
- func (m *RequestInitLedgerExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestInitLedgerExtra) XXX_Merge(src proto.Message)
- func (m *RequestInitLedgerExtra) XXX_Size() int
- func (m *RequestInitLedgerExtra) XXX_Unmarshal(b []byte) error
- type ResponseEndBlockExtra
- func (*ResponseEndBlockExtra) Descriptor() ([]byte, []int)
- func (m *ResponseEndBlockExtra) GetConsensusParamUpdates() *ConsensusParams
- func (m *ResponseEndBlockExtra) GetValidatorUpdates() []ValidatorUpdate
- func (m *ResponseEndBlockExtra) Marshal() (dAtA []byte, err error)
- func (m *ResponseEndBlockExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseEndBlockExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseEndBlockExtra) ProtoMessage()
- func (m *ResponseEndBlockExtra) Reset()
- func (m *ResponseEndBlockExtra) Size() (n int)
- func (m *ResponseEndBlockExtra) String() string
- func (m *ResponseEndBlockExtra) Unmarshal(dAtA []byte) error
- func (m *ResponseEndBlockExtra) XXX_DiscardUnknown()
- func (m *ResponseEndBlockExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseEndBlockExtra) XXX_Merge(src proto.Message)
- func (m *ResponseEndBlockExtra) XXX_Size() int
- func (m *ResponseEndBlockExtra) XXX_Unmarshal(b []byte) error
- type ResponseInitLedgerExtra
- func (*ResponseInitLedgerExtra) Descriptor() ([]byte, []int)
- func (m *ResponseInitLedgerExtra) GetConsensusParams() *ConsensusParams
- func (m *ResponseInitLedgerExtra) GetValidators() []ValidatorUpdate
- func (m *ResponseInitLedgerExtra) Marshal() (dAtA []byte, err error)
- func (m *ResponseInitLedgerExtra) MarshalTo(dAtA []byte) (int, error)
- func (m *ResponseInitLedgerExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResponseInitLedgerExtra) ProtoMessage()
- func (m *ResponseInitLedgerExtra) Reset()
- func (m *ResponseInitLedgerExtra) Size() (n int)
- func (m *ResponseInitLedgerExtra) String() string
- func (m *ResponseInitLedgerExtra) Unmarshal(dAtA []byte) error
- func (m *ResponseInitLedgerExtra) XXX_DiscardUnknown()
- func (m *ResponseInitLedgerExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseInitLedgerExtra) XXX_Merge(src proto.Message)
- func (m *ResponseInitLedgerExtra) XXX_Size() int
- func (m *ResponseInitLedgerExtra) XXX_Unmarshal(b []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() []byte
- func (m *Validator) GetPower() 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 (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_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 ValidatorUpdate
- func (*ValidatorUpdate) Descriptor() ([]byte, []int)
- func (m *ValidatorUpdate) GetPower() int64
- func (m *ValidatorUpdate) GetPubKey() types.PublicKey
- func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error)
- func (m *ValidatorUpdate) MarshalTo(dAtA []byte) (int, error)
- func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValidatorUpdate) ProtoMessage()
- func (m *ValidatorUpdate) Reset()
- func (m *ValidatorUpdate) Size() (n int)
- func (m *ValidatorUpdate) String() string
- func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error
- func (m *ValidatorUpdate) XXX_DiscardUnknown()
- func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidatorUpdate) XXX_Merge(src proto.Message)
- func (m *ValidatorUpdate) XXX_Size() int
- func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error
- type ValidatorUpdates
- type 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VersionParams) XXX_Merge(src proto.Message)
- func (m *VersionParams) XXX_Size() int
- func (m *VersionParams) XXX_Unmarshal(b []byte) error
- type VoteInfo
- func (*VoteInfo) Descriptor() ([]byte, []int)
- func (m *VoteInfo) GetSignedLastBlock() bool
- func (m *VoteInfo) GetValidator() Validator
- func (m *VoteInfo) Marshal() (dAtA []byte, err error)
- func (m *VoteInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *VoteInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VoteInfo) ProtoMessage()
- func (m *VoteInfo) Reset()
- func (m *VoteInfo) Size() (n int)
- func (m *VoteInfo) String() string
- func (m *VoteInfo) Unmarshal(dAtA []byte) error
- func (m *VoteInfo) XXX_DiscardUnknown()
- func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteInfo) XXX_Merge(src proto.Message)
- func (m *VoteInfo) XXX_Size() int
- func (m *VoteInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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 EvidenceType_name = map[int32]string{
0: "UNKNOWN",
1: "DUPLICATE_VOTE",
2: "LIGHT_CLIENT_ATTACK",
}
var EvidenceType_value = map[string]int32{
"UNKNOWN": 0,
"DUPLICATE_VOTE": 1,
"LIGHT_CLIENT_ATTACK": 2,
}
Functions ¶
func PubKeyToProto ¶
From: https://github.com/tendermint/tendermint/blob/8441b3715aff9dbfcb9cbe29ebc2f53e7cd910d3/crypto/encoding/codec.go#L20 PubKeyToProto takes PubKey and transforms it to a protobuf Pubkey
Types ¶
type BlockParams ¶
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"` }
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) Marshal ¶
func (m *BlockParams) Marshal() (dAtA []byte, err error)
func (*BlockParams) MarshalToSizedBuffer ¶
func (m *BlockParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockParams) ProtoMessage ¶
func (*BlockParams) ProtoMessage()
func (*BlockParams) Reset ¶
func (m *BlockParams) Reset()
func (*BlockParams) Size ¶
func (m *BlockParams) Size() (n int)
func (*BlockParams) String ¶
func (m *BlockParams) String() string
func (*BlockParams) Unmarshal ¶
func (m *BlockParams) Unmarshal(dAtA []byte) error
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 ConsensusParams ¶
type ConsensusParams struct { Block *BlockParams `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` Evidence *EvidenceParams `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"` Validator *ValidatorParams `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` Version *VersionParams `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` }
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) GetVersion ¶
func (m *ConsensusParams) GetVersion() *VersionParams
func (*ConsensusParams) Marshal ¶
func (m *ConsensusParams) Marshal() (dAtA []byte, err error)
func (*ConsensusParams) MarshalToSizedBuffer ¶
func (m *ConsensusParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsensusParams) ProtoMessage ¶
func (*ConsensusParams) ProtoMessage()
func (*ConsensusParams) Reset ¶
func (m *ConsensusParams) Reset()
func (*ConsensusParams) Size ¶
func (m *ConsensusParams) Size() (n int)
func (*ConsensusParams) String ¶
func (m *ConsensusParams) String() string
func (*ConsensusParams) Unmarshal ¶
func (m *ConsensusParams) Unmarshal(dAtA []byte) error
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 Evidence ¶
type Evidence struct { Type EvidenceType `protobuf:"varint,1,opt,name=type,proto3,enum=daotl.acei.consensus.tendermint.EvidenceType" json:"type,omitempty"` // The offending validator Validator Validator `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator"` // The height when the offense occurred Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // The corresponding time where the offense occurred Time time.Time `protobuf:"bytes,4,opt,name=time,proto3,stdtime" json:"time"` // Total voting power of the validator set in case the ACEI application does // not store historical validators. // https://github.com/tendermint/tendermint/issues/4581 TotalVotingPower int64 `protobuf:"varint,5,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` }
func (*Evidence) Descriptor ¶
func (*Evidence) GetTotalVotingPower ¶
func (*Evidence) GetType ¶
func (m *Evidence) GetType() EvidenceType
func (*Evidence) GetValidator ¶
func (*Evidence) MarshalToSizedBuffer ¶
func (*Evidence) ProtoMessage ¶
func (*Evidence) ProtoMessage()
func (*Evidence) XXX_DiscardUnknown ¶
func (m *Evidence) XXX_DiscardUnknown()
func (*Evidence) XXX_Marshal ¶
func (*Evidence) XXX_Unmarshal ¶
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 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 ¶
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) GetMaxBytes ¶
func (m *EvidenceParams) GetMaxBytes() int64
func (*EvidenceParams) Marshal ¶
func (m *EvidenceParams) Marshal() (dAtA []byte, err error)
func (*EvidenceParams) MarshalToSizedBuffer ¶
func (m *EvidenceParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EvidenceParams) ProtoMessage ¶
func (*EvidenceParams) ProtoMessage()
func (*EvidenceParams) Reset ¶
func (m *EvidenceParams) Reset()
func (*EvidenceParams) Size ¶
func (m *EvidenceParams) Size() (n int)
func (*EvidenceParams) String ¶
func (m *EvidenceParams) String() string
func (*EvidenceParams) Unmarshal ¶
func (m *EvidenceParams) Unmarshal(dAtA []byte) error
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 EvidenceType ¶
type EvidenceType int32
const ( EvidenceType_UNKNOWN EvidenceType = 0 EvidenceType_DUPLICATE_VOTE EvidenceType = 1 EvidenceType_LIGHT_CLIENT_ATTACK EvidenceType = 2 )
func (EvidenceType) EnumDescriptor ¶
func (EvidenceType) EnumDescriptor() ([]byte, []int)
func (EvidenceType) String ¶
func (x EvidenceType) String() string
type LastCommitInfo ¶
type LastCommitInfo struct { Round int32 `protobuf:"varint,1,opt,name=round,proto3" json:"round,omitempty"` Votes []VoteInfo `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes"` }
func (*LastCommitInfo) Descriptor ¶
func (*LastCommitInfo) Descriptor() ([]byte, []int)
func (*LastCommitInfo) GetRound ¶
func (m *LastCommitInfo) GetRound() int32
func (*LastCommitInfo) GetVotes ¶
func (m *LastCommitInfo) GetVotes() []VoteInfo
func (*LastCommitInfo) Marshal ¶
func (m *LastCommitInfo) Marshal() (dAtA []byte, err error)
func (*LastCommitInfo) MarshalToSizedBuffer ¶
func (m *LastCommitInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastCommitInfo) ProtoMessage ¶
func (*LastCommitInfo) ProtoMessage()
func (*LastCommitInfo) Reset ¶
func (m *LastCommitInfo) Reset()
func (*LastCommitInfo) Size ¶
func (m *LastCommitInfo) Size() (n int)
func (*LastCommitInfo) String ¶
func (m *LastCommitInfo) String() string
func (*LastCommitInfo) Unmarshal ¶
func (m *LastCommitInfo) Unmarshal(dAtA []byte) error
func (*LastCommitInfo) XXX_DiscardUnknown ¶
func (m *LastCommitInfo) XXX_DiscardUnknown()
func (*LastCommitInfo) XXX_Marshal ¶
func (m *LastCommitInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastCommitInfo) XXX_Merge ¶
func (m *LastCommitInfo) XXX_Merge(src proto.Message)
func (*LastCommitInfo) XXX_Size ¶
func (m *LastCommitInfo) XXX_Size() int
func (*LastCommitInfo) XXX_Unmarshal ¶
func (m *LastCommitInfo) XXX_Unmarshal(b []byte) error
type RequestBeginBlockExtra ¶
type RequestBeginBlockExtra struct { LastCommitInfo LastCommitInfo `protobuf:"bytes,1,opt,name=last_commit_info,json=lastCommitInfo,proto3" json:"last_commit_info"` ByzantineValidators []Evidence `protobuf:"bytes,2,rep,name=byzantine_validators,json=byzantineValidators,proto3" json:"byzantine_validators"` }
func (*RequestBeginBlockExtra) Descriptor ¶
func (*RequestBeginBlockExtra) Descriptor() ([]byte, []int)
func (*RequestBeginBlockExtra) GetByzantineValidators ¶
func (m *RequestBeginBlockExtra) GetByzantineValidators() []Evidence
func (*RequestBeginBlockExtra) GetLastCommitInfo ¶
func (m *RequestBeginBlockExtra) GetLastCommitInfo() LastCommitInfo
func (*RequestBeginBlockExtra) Marshal ¶
func (m *RequestBeginBlockExtra) Marshal() (dAtA []byte, err error)
func (*RequestBeginBlockExtra) MarshalTo ¶
func (m *RequestBeginBlockExtra) MarshalTo(dAtA []byte) (int, error)
func (*RequestBeginBlockExtra) MarshalToSizedBuffer ¶
func (m *RequestBeginBlockExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestBeginBlockExtra) ProtoMessage ¶
func (*RequestBeginBlockExtra) ProtoMessage()
func (*RequestBeginBlockExtra) Reset ¶
func (m *RequestBeginBlockExtra) Reset()
func (*RequestBeginBlockExtra) Size ¶
func (m *RequestBeginBlockExtra) Size() (n int)
func (*RequestBeginBlockExtra) String ¶
func (m *RequestBeginBlockExtra) String() string
func (*RequestBeginBlockExtra) Unmarshal ¶
func (m *RequestBeginBlockExtra) Unmarshal(dAtA []byte) error
func (*RequestBeginBlockExtra) XXX_DiscardUnknown ¶
func (m *RequestBeginBlockExtra) XXX_DiscardUnknown()
func (*RequestBeginBlockExtra) XXX_Marshal ¶
func (m *RequestBeginBlockExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestBeginBlockExtra) XXX_Merge ¶
func (m *RequestBeginBlockExtra) XXX_Merge(src proto.Message)
func (*RequestBeginBlockExtra) XXX_Size ¶
func (m *RequestBeginBlockExtra) XXX_Size() int
func (*RequestBeginBlockExtra) XXX_Unmarshal ¶
func (m *RequestBeginBlockExtra) XXX_Unmarshal(b []byte) error
type RequestInitLedgerExtra ¶
type RequestInitLedgerExtra struct { ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"` }
func (*RequestInitLedgerExtra) Descriptor ¶
func (*RequestInitLedgerExtra) Descriptor() ([]byte, []int)
func (*RequestInitLedgerExtra) GetConsensusParams ¶
func (m *RequestInitLedgerExtra) GetConsensusParams() *ConsensusParams
func (*RequestInitLedgerExtra) GetValidators ¶
func (m *RequestInitLedgerExtra) GetValidators() []ValidatorUpdate
func (*RequestInitLedgerExtra) Marshal ¶
func (m *RequestInitLedgerExtra) Marshal() (dAtA []byte, err error)
func (*RequestInitLedgerExtra) MarshalTo ¶
func (m *RequestInitLedgerExtra) MarshalTo(dAtA []byte) (int, error)
func (*RequestInitLedgerExtra) MarshalToSizedBuffer ¶
func (m *RequestInitLedgerExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestInitLedgerExtra) ProtoMessage ¶
func (*RequestInitLedgerExtra) ProtoMessage()
func (*RequestInitLedgerExtra) Reset ¶
func (m *RequestInitLedgerExtra) Reset()
func (*RequestInitLedgerExtra) Size ¶
func (m *RequestInitLedgerExtra) Size() (n int)
func (*RequestInitLedgerExtra) String ¶
func (m *RequestInitLedgerExtra) String() string
func (*RequestInitLedgerExtra) Unmarshal ¶
func (m *RequestInitLedgerExtra) Unmarshal(dAtA []byte) error
func (*RequestInitLedgerExtra) XXX_DiscardUnknown ¶
func (m *RequestInitLedgerExtra) XXX_DiscardUnknown()
func (*RequestInitLedgerExtra) XXX_Marshal ¶
func (m *RequestInitLedgerExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestInitLedgerExtra) XXX_Merge ¶
func (m *RequestInitLedgerExtra) XXX_Merge(src proto.Message)
func (*RequestInitLedgerExtra) XXX_Size ¶
func (m *RequestInitLedgerExtra) XXX_Size() int
func (*RequestInitLedgerExtra) XXX_Unmarshal ¶
func (m *RequestInitLedgerExtra) XXX_Unmarshal(b []byte) error
type ResponseEndBlockExtra ¶
type ResponseEndBlockExtra struct { ValidatorUpdates []ValidatorUpdate `protobuf:"bytes,1,rep,name=validator_updates,json=validatorUpdates,proto3" json:"validator_updates"` ConsensusParamUpdates *ConsensusParams `` /* 126-byte string literal not displayed */ }
func (*ResponseEndBlockExtra) Descriptor ¶
func (*ResponseEndBlockExtra) Descriptor() ([]byte, []int)
func (*ResponseEndBlockExtra) GetConsensusParamUpdates ¶
func (m *ResponseEndBlockExtra) GetConsensusParamUpdates() *ConsensusParams
func (*ResponseEndBlockExtra) GetValidatorUpdates ¶
func (m *ResponseEndBlockExtra) GetValidatorUpdates() []ValidatorUpdate
func (*ResponseEndBlockExtra) Marshal ¶
func (m *ResponseEndBlockExtra) Marshal() (dAtA []byte, err error)
func (*ResponseEndBlockExtra) MarshalTo ¶
func (m *ResponseEndBlockExtra) MarshalTo(dAtA []byte) (int, error)
func (*ResponseEndBlockExtra) MarshalToSizedBuffer ¶
func (m *ResponseEndBlockExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseEndBlockExtra) ProtoMessage ¶
func (*ResponseEndBlockExtra) ProtoMessage()
func (*ResponseEndBlockExtra) Reset ¶
func (m *ResponseEndBlockExtra) Reset()
func (*ResponseEndBlockExtra) Size ¶
func (m *ResponseEndBlockExtra) Size() (n int)
func (*ResponseEndBlockExtra) String ¶
func (m *ResponseEndBlockExtra) String() string
func (*ResponseEndBlockExtra) Unmarshal ¶
func (m *ResponseEndBlockExtra) Unmarshal(dAtA []byte) error
func (*ResponseEndBlockExtra) XXX_DiscardUnknown ¶
func (m *ResponseEndBlockExtra) XXX_DiscardUnknown()
func (*ResponseEndBlockExtra) XXX_Marshal ¶
func (m *ResponseEndBlockExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseEndBlockExtra) XXX_Merge ¶
func (m *ResponseEndBlockExtra) XXX_Merge(src proto.Message)
func (*ResponseEndBlockExtra) XXX_Size ¶
func (m *ResponseEndBlockExtra) XXX_Size() int
func (*ResponseEndBlockExtra) XXX_Unmarshal ¶
func (m *ResponseEndBlockExtra) XXX_Unmarshal(b []byte) error
type ResponseInitLedgerExtra ¶
type ResponseInitLedgerExtra struct { ConsensusParams *ConsensusParams `protobuf:"bytes,1,opt,name=consensus_params,json=consensusParams,proto3" json:"consensus_params,omitempty"` Validators []ValidatorUpdate `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators"` }
func (*ResponseInitLedgerExtra) Descriptor ¶
func (*ResponseInitLedgerExtra) Descriptor() ([]byte, []int)
func (*ResponseInitLedgerExtra) GetConsensusParams ¶
func (m *ResponseInitLedgerExtra) GetConsensusParams() *ConsensusParams
func (*ResponseInitLedgerExtra) GetValidators ¶
func (m *ResponseInitLedgerExtra) GetValidators() []ValidatorUpdate
func (*ResponseInitLedgerExtra) Marshal ¶
func (m *ResponseInitLedgerExtra) Marshal() (dAtA []byte, err error)
func (*ResponseInitLedgerExtra) MarshalTo ¶
func (m *ResponseInitLedgerExtra) MarshalTo(dAtA []byte) (int, error)
func (*ResponseInitLedgerExtra) MarshalToSizedBuffer ¶
func (m *ResponseInitLedgerExtra) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResponseInitLedgerExtra) ProtoMessage ¶
func (*ResponseInitLedgerExtra) ProtoMessage()
func (*ResponseInitLedgerExtra) Reset ¶
func (m *ResponseInitLedgerExtra) Reset()
func (*ResponseInitLedgerExtra) Size ¶
func (m *ResponseInitLedgerExtra) Size() (n int)
func (*ResponseInitLedgerExtra) String ¶
func (m *ResponseInitLedgerExtra) String() string
func (*ResponseInitLedgerExtra) Unmarshal ¶
func (m *ResponseInitLedgerExtra) Unmarshal(dAtA []byte) error
func (*ResponseInitLedgerExtra) XXX_DiscardUnknown ¶
func (m *ResponseInitLedgerExtra) XXX_DiscardUnknown()
func (*ResponseInitLedgerExtra) XXX_Marshal ¶
func (m *ResponseInitLedgerExtra) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseInitLedgerExtra) XXX_Merge ¶
func (m *ResponseInitLedgerExtra) XXX_Merge(src proto.Message)
func (*ResponseInitLedgerExtra) XXX_Size ¶
func (m *ResponseInitLedgerExtra) XXX_Size() int
func (*ResponseInitLedgerExtra) XXX_Unmarshal ¶
func (m *ResponseInitLedgerExtra) XXX_Unmarshal(b []byte) error
type Validator ¶
type Validator struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // PubKey pub_key = 2 [(gogoproto.nullable)=false]; Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` }
Validator
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
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"`
}
ValidatorParams restrict the public key types validators can use. NOTE: uses ACEI pubkey naming.
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) Marshal ¶
func (m *ValidatorParams) Marshal() (dAtA []byte, err error)
func (*ValidatorParams) MarshalToSizedBuffer ¶
func (m *ValidatorParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorParams) ProtoMessage ¶
func (*ValidatorParams) ProtoMessage()
func (*ValidatorParams) Reset ¶
func (m *ValidatorParams) Reset()
func (*ValidatorParams) Size ¶
func (m *ValidatorParams) Size() (n int)
func (*ValidatorParams) String ¶
func (m *ValidatorParams) String() string
func (*ValidatorParams) Unmarshal ¶
func (m *ValidatorParams) Unmarshal(dAtA []byte) error
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 ValidatorUpdate ¶
type ValidatorUpdate struct { PubKey types.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"` Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` }
ValidatorUpdate
func Ed25519ValidatorUpdate ¶
func Ed25519ValidatorUpdate(pk []byte, power int64) ValidatorUpdate
func UpdateValidator ¶
func UpdateValidator(pk []byte, power int64, keyType string) ValidatorUpdate
func (*ValidatorUpdate) Descriptor ¶
func (*ValidatorUpdate) Descriptor() ([]byte, []int)
func (*ValidatorUpdate) GetPower ¶
func (m *ValidatorUpdate) GetPower() int64
func (*ValidatorUpdate) GetPubKey ¶
func (m *ValidatorUpdate) GetPubKey() types.PublicKey
func (*ValidatorUpdate) Marshal ¶
func (m *ValidatorUpdate) Marshal() (dAtA []byte, err error)
func (*ValidatorUpdate) MarshalToSizedBuffer ¶
func (m *ValidatorUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValidatorUpdate) ProtoMessage ¶
func (*ValidatorUpdate) ProtoMessage()
func (*ValidatorUpdate) Reset ¶
func (m *ValidatorUpdate) Reset()
func (*ValidatorUpdate) Size ¶
func (m *ValidatorUpdate) Size() (n int)
func (*ValidatorUpdate) String ¶
func (m *ValidatorUpdate) String() string
func (*ValidatorUpdate) Unmarshal ¶
func (m *ValidatorUpdate) Unmarshal(dAtA []byte) error
func (*ValidatorUpdate) XXX_DiscardUnknown ¶
func (m *ValidatorUpdate) XXX_DiscardUnknown()
func (*ValidatorUpdate) XXX_Marshal ¶
func (m *ValidatorUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidatorUpdate) XXX_Merge ¶
func (m *ValidatorUpdate) XXX_Merge(src proto.Message)
func (*ValidatorUpdate) XXX_Size ¶
func (m *ValidatorUpdate) XXX_Size() int
func (*ValidatorUpdate) XXX_Unmarshal ¶
func (m *ValidatorUpdate) XXX_Unmarshal(b []byte) error
type ValidatorUpdates ¶
type ValidatorUpdates []ValidatorUpdate
ValidatorUpdates is a list of validators that implements the Sort interface
func (ValidatorUpdates) Len ¶
func (v ValidatorUpdates) Len() int
func (ValidatorUpdates) Less ¶
func (v ValidatorUpdates) Less(i, j int) bool
XXX: doesn't distinguish same validator with different power
func (ValidatorUpdates) Swap ¶
func (v ValidatorUpdates) Swap(i, j int)
type VersionParams ¶
type VersionParams struct {
AppVersion uint64 `protobuf:"varint,1,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
}
VersionParams contains the ACEI application version.
func (*VersionParams) Descriptor ¶
func (*VersionParams) Descriptor() ([]byte, []int)
func (*VersionParams) Equal ¶
func (this *VersionParams) Equal(that interface{}) bool
func (*VersionParams) GetAppVersion ¶
func (m *VersionParams) GetAppVersion() uint64
func (*VersionParams) Marshal ¶
func (m *VersionParams) Marshal() (dAtA []byte, err error)
func (*VersionParams) MarshalToSizedBuffer ¶
func (m *VersionParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VersionParams) ProtoMessage ¶
func (*VersionParams) ProtoMessage()
func (*VersionParams) Reset ¶
func (m *VersionParams) Reset()
func (*VersionParams) Size ¶
func (m *VersionParams) Size() (n int)
func (*VersionParams) String ¶
func (m *VersionParams) String() string
func (*VersionParams) Unmarshal ¶
func (m *VersionParams) Unmarshal(dAtA []byte) error
func (*VersionParams) XXX_DiscardUnknown ¶
func (m *VersionParams) XXX_DiscardUnknown()
func (*VersionParams) XXX_Marshal ¶
func (m *VersionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VersionParams) XXX_Merge ¶
func (m *VersionParams) XXX_Merge(src proto.Message)
func (*VersionParams) XXX_Size ¶
func (m *VersionParams) XXX_Size() int
func (*VersionParams) XXX_Unmarshal ¶
func (m *VersionParams) XXX_Unmarshal(b []byte) error
type VoteInfo ¶
type VoteInfo struct { Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"` SignedLastBlock bool `protobuf:"varint,2,opt,name=signed_last_block,json=signedLastBlock,proto3" json:"signed_last_block,omitempty"` }
VoteInfo
func (*VoteInfo) Descriptor ¶
func (*VoteInfo) GetSignedLastBlock ¶
func (*VoteInfo) GetValidator ¶
func (*VoteInfo) MarshalToSizedBuffer ¶
func (*VoteInfo) ProtoMessage ¶
func (*VoteInfo) ProtoMessage()
func (*VoteInfo) XXX_DiscardUnknown ¶
func (m *VoteInfo) XXX_DiscardUnknown()