pb

package
v0.0.0-...-586837e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCanonical        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCanonical          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCanonical = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthConTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DataHashFlag_name = map[int32]string{
	0: "DATA_HASH_FLAG_UNKNOWN",
	1: "DATA_HASH_FLAG_ABSENT",
	2: "DATA_HASH_FLAG_COMMIT",
	3: "DATA_HASH_FLAG_NIL",
}
View Source
var DataHashFlag_value = map[string]int32{
	"DATA_HASH_FLAG_UNKNOWN": 0,
	"DATA_HASH_FLAG_ABSENT":  1,
	"DATA_HASH_FLAG_COMMIT":  2,
	"DATA_HASH_FLAG_NIL":     3,
}
View Source
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",
}
View Source
var SignedMsgType_value = map[string]int32{
	"SIGNED_MSG_TYPE_UNKNOWN":   0,
	"SIGNED_MSG_TYPE_PREVOTE":   1,
	"SIGNED_MSG_TYPE_PRECOMMIT": 2,
	"SIGNED_MSG_TYPE_PROPOSAL":  32,
}

Functions

This section is empty.

Types

type CanonicalDataHash

type CanonicalDataHash struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*CanonicalDataHash) Descriptor

func (*CanonicalDataHash) Descriptor() ([]byte, []int)

func (*CanonicalDataHash) GetHash

func (m *CanonicalDataHash) GetHash() []byte

func (*CanonicalDataHash) Marshal

func (m *CanonicalDataHash) Marshal() (dAtA []byte, err error)

func (*CanonicalDataHash) MarshalTo

func (m *CanonicalDataHash) MarshalTo(dAtA []byte) (int, error)

func (*CanonicalDataHash) MarshalToSizedBuffer

func (m *CanonicalDataHash) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanonicalDataHash) ProtoMessage

func (*CanonicalDataHash) ProtoMessage()

func (*CanonicalDataHash) Reset

func (m *CanonicalDataHash) Reset()

func (*CanonicalDataHash) Size

func (m *CanonicalDataHash) Size() (n int)

func (*CanonicalDataHash) String

func (m *CanonicalDataHash) String() string

func (*CanonicalDataHash) Unmarshal

func (m *CanonicalDataHash) Unmarshal(dAtA []byte) error

func (*CanonicalDataHash) XXX_DiscardUnknown

func (m *CanonicalDataHash) XXX_DiscardUnknown()

func (*CanonicalDataHash) XXX_Marshal

func (m *CanonicalDataHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CanonicalDataHash) XXX_Merge

func (m *CanonicalDataHash) XXX_Merge(src proto.Message)

func (*CanonicalDataHash) XXX_Size

func (m *CanonicalDataHash) XXX_Size() int

func (*CanonicalDataHash) XXX_Unmarshal

func (m *CanonicalDataHash) XXX_Unmarshal(b []byte) error

type CanonicalProposal

type CanonicalProposal struct {
	Type      SignedMsgType      `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	Height    int64              `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int64              `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	POLRound  int64              `protobuf:"varint,4,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"`
	DataHash  *CanonicalDataHash `protobuf:"bytes,5,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	Timestamp time.Time          `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	ChainID   string             `protobuf:"bytes,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*CanonicalProposal) Descriptor

func (*CanonicalProposal) Descriptor() ([]byte, []int)

func (*CanonicalProposal) GetChainID

func (m *CanonicalProposal) GetChainID() string

func (*CanonicalProposal) GetDataHash

func (m *CanonicalProposal) GetDataHash() *CanonicalDataHash

func (*CanonicalProposal) GetHeight

func (m *CanonicalProposal) GetHeight() int64

func (*CanonicalProposal) GetPOLRound

func (m *CanonicalProposal) GetPOLRound() int64

func (*CanonicalProposal) GetRound

func (m *CanonicalProposal) GetRound() int64

func (*CanonicalProposal) GetTimestamp

func (m *CanonicalProposal) GetTimestamp() time.Time

func (*CanonicalProposal) GetType

func (m *CanonicalProposal) GetType() SignedMsgType

func (*CanonicalProposal) Marshal

func (m *CanonicalProposal) Marshal() (dAtA []byte, err error)

func (*CanonicalProposal) MarshalTo

func (m *CanonicalProposal) MarshalTo(dAtA []byte) (int, error)

func (*CanonicalProposal) MarshalToSizedBuffer

func (m *CanonicalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanonicalProposal) ProtoMessage

func (*CanonicalProposal) ProtoMessage()

func (*CanonicalProposal) Reset

func (m *CanonicalProposal) Reset()

func (*CanonicalProposal) Size

func (m *CanonicalProposal) Size() (n int)

func (*CanonicalProposal) String

func (m *CanonicalProposal) String() string

func (*CanonicalProposal) Unmarshal

func (m *CanonicalProposal) Unmarshal(dAtA []byte) error

func (*CanonicalProposal) XXX_DiscardUnknown

func (m *CanonicalProposal) XXX_DiscardUnknown()

func (*CanonicalProposal) XXX_Marshal

func (m *CanonicalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CanonicalProposal) XXX_Merge

func (m *CanonicalProposal) XXX_Merge(src proto.Message)

func (*CanonicalProposal) XXX_Size

func (m *CanonicalProposal) XXX_Size() int

func (*CanonicalProposal) XXX_Unmarshal

func (m *CanonicalProposal) XXX_Unmarshal(b []byte) error

type CanonicalVote

type CanonicalVote struct {
	Type      SignedMsgType      `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	Height    int64              `protobuf:"fixed64,2,opt,name=height,proto3" json:"height,omitempty"`
	Round     int64              `protobuf:"fixed64,3,opt,name=round,proto3" json:"round,omitempty"`
	DataHash  *CanonicalDataHash `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	Timestamp time.Time          `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	ChainID   string             `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*CanonicalVote) Descriptor

func (*CanonicalVote) Descriptor() ([]byte, []int)

func (*CanonicalVote) GetChainID

func (m *CanonicalVote) GetChainID() string

func (*CanonicalVote) GetDataHash

func (m *CanonicalVote) GetDataHash() *CanonicalDataHash

func (*CanonicalVote) GetHeight

func (m *CanonicalVote) GetHeight() int64

func (*CanonicalVote) GetRound

func (m *CanonicalVote) GetRound() int64

func (*CanonicalVote) GetTimestamp

func (m *CanonicalVote) GetTimestamp() time.Time

func (*CanonicalVote) GetType

func (m *CanonicalVote) GetType() SignedMsgType

func (*CanonicalVote) Marshal

func (m *CanonicalVote) Marshal() (dAtA []byte, err error)

func (*CanonicalVote) MarshalTo

func (m *CanonicalVote) MarshalTo(dAtA []byte) (int, error)

func (*CanonicalVote) MarshalToSizedBuffer

func (m *CanonicalVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CanonicalVote) ProtoMessage

func (*CanonicalVote) ProtoMessage()

func (*CanonicalVote) Reset

func (m *CanonicalVote) Reset()

func (*CanonicalVote) Size

func (m *CanonicalVote) Size() (n int)

func (*CanonicalVote) String

func (m *CanonicalVote) String() string

func (*CanonicalVote) Unmarshal

func (m *CanonicalVote) Unmarshal(dAtA []byte) error

func (*CanonicalVote) XXX_DiscardUnknown

func (m *CanonicalVote) XXX_DiscardUnknown()

func (*CanonicalVote) XXX_Marshal

func (m *CanonicalVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CanonicalVote) XXX_Merge

func (m *CanonicalVote) XXX_Merge(src proto.Message)

func (*CanonicalVote) XXX_Size

func (m *CanonicalVote) XXX_Size() int

func (*CanonicalVote) XXX_Unmarshal

func (m *CanonicalVote) XXX_Unmarshal(b []byte) error

type Commit

type Commit struct {
	Height     int64       `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round      int32       `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	DataHash   DataHash    `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"`
	Signatures []CommitSig `protobuf:"bytes,4,rep,name=signatures,proto3" json:"signatures"`
}

Commit contains the evidence that a block was committed by a set of validators.

func (*Commit) Descriptor

func (*Commit) Descriptor() ([]byte, []int)

func (*Commit) GetDataHash

func (m *Commit) GetDataHash() DataHash

func (*Commit) GetHeight

func (m *Commit) GetHeight() int64

func (*Commit) GetRound

func (m *Commit) GetRound() int32

func (*Commit) GetSignatures

func (m *Commit) GetSignatures() []CommitSig

func (*Commit) Marshal

func (m *Commit) Marshal() (dAtA []byte, err error)

func (*Commit) MarshalTo

func (m *Commit) MarshalTo(dAtA []byte) (int, error)

func (*Commit) MarshalToSizedBuffer

func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) Reset

func (m *Commit) Reset()

func (*Commit) Size

func (m *Commit) Size() (n int)

func (*Commit) String

func (m *Commit) String() string

func (*Commit) Unmarshal

func (m *Commit) Unmarshal(dAtA []byte) error

func (*Commit) XXX_DiscardUnknown

func (m *Commit) XXX_DiscardUnknown()

func (*Commit) XXX_Marshal

func (m *Commit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Commit) XXX_Merge

func (m *Commit) XXX_Merge(src proto.Message)

func (*Commit) XXX_Size

func (m *Commit) XXX_Size() int

func (*Commit) XXX_Unmarshal

func (m *Commit) XXX_Unmarshal(b []byte) error

type CommitSig

type CommitSig struct {
	DataHashFlag     DataHashFlag `protobuf:"varint,1,opt,name=data_hash_flag,json=dataHashFlag,proto3,enum=pb.DataHashFlag" json:"data_hash_flag,omitempty"`
	ValidatorAddress []byte       `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Timestamp        time.Time    `protobuf:"bytes,3,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	Signature        []byte       `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}

CommitSig is a part of the Vote included in a Commit.

func (*CommitSig) Descriptor

func (*CommitSig) Descriptor() ([]byte, []int)

func (*CommitSig) GetDataHashFlag

func (m *CommitSig) GetDataHashFlag() DataHashFlag

func (*CommitSig) GetSignature

func (m *CommitSig) GetSignature() []byte

func (*CommitSig) GetTimestamp

func (m *CommitSig) GetTimestamp() time.Time

func (*CommitSig) GetValidatorAddress

func (m *CommitSig) GetValidatorAddress() []byte

func (*CommitSig) Marshal

func (m *CommitSig) Marshal() (dAtA []byte, err error)

func (*CommitSig) MarshalTo

func (m *CommitSig) MarshalTo(dAtA []byte) (int, error)

func (*CommitSig) MarshalToSizedBuffer

func (m *CommitSig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CommitSig) ProtoMessage

func (*CommitSig) ProtoMessage()

func (*CommitSig) Reset

func (m *CommitSig) Reset()

func (*CommitSig) Size

func (m *CommitSig) Size() (n int)

func (*CommitSig) String

func (m *CommitSig) String() string

func (*CommitSig) Unmarshal

func (m *CommitSig) Unmarshal(dAtA []byte) error

func (*CommitSig) XXX_DiscardUnknown

func (m *CommitSig) XXX_DiscardUnknown()

func (*CommitSig) XXX_Marshal

func (m *CommitSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CommitSig) XXX_Merge

func (m *CommitSig) XXX_Merge(src proto.Message)

func (*CommitSig) XXX_Size

func (m *CommitSig) XXX_Size() int

func (*CommitSig) XXX_Unmarshal

func (m *CommitSig) 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"`
}

Data contains the set of transactions included in the block

func (*Data) Descriptor

func (*Data) Descriptor() ([]byte, []int)

func (*Data) GetTxs

func (m *Data) GetTxs() [][]byte

func (*Data) Marshal

func (m *Data) Marshal() (dAtA []byte, err error)

func (*Data) MarshalTo

func (m *Data) MarshalTo(dAtA []byte) (int, error)

func (*Data) MarshalToSizedBuffer

func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) Size

func (m *Data) Size() (n int)

func (*Data) String

func (m *Data) String() string

func (*Data) Unmarshal

func (m *Data) Unmarshal(dAtA []byte) error

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Data) XXX_Merge

func (m *Data) XXX_Merge(src proto.Message)

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

func (m *Data) XXX_Unmarshal(b []byte) error

type DataHash

type DataHash struct {
	Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

DataHash

func (*DataHash) Descriptor

func (*DataHash) Descriptor() ([]byte, []int)

func (*DataHash) GetHash

func (m *DataHash) GetHash() []byte

func (*DataHash) Marshal

func (m *DataHash) Marshal() (dAtA []byte, err error)

func (*DataHash) MarshalTo

func (m *DataHash) MarshalTo(dAtA []byte) (int, error)

func (*DataHash) MarshalToSizedBuffer

func (m *DataHash) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DataHash) ProtoMessage

func (*DataHash) ProtoMessage()

func (*DataHash) Reset

func (m *DataHash) Reset()

func (*DataHash) Size

func (m *DataHash) Size() (n int)

func (*DataHash) String

func (m *DataHash) String() string

func (*DataHash) Unmarshal

func (m *DataHash) Unmarshal(dAtA []byte) error

func (*DataHash) XXX_DiscardUnknown

func (m *DataHash) XXX_DiscardUnknown()

func (*DataHash) XXX_Marshal

func (m *DataHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataHash) XXX_Merge

func (m *DataHash) XXX_Merge(src proto.Message)

func (*DataHash) XXX_Size

func (m *DataHash) XXX_Size() int

func (*DataHash) XXX_Unmarshal

func (m *DataHash) XXX_Unmarshal(b []byte) error

type DataHashFlag

type DataHashFlag int32

DataHashFlag indicates which DataHash the signature is for

const (
	DataHashFlagUnknown DataHashFlag = 0
	DataHashFlagAbsent  DataHashFlag = 1
	DataHashFlagCommit  DataHashFlag = 2
	DataHashFlagNil     DataHashFlag = 3
)

func (DataHashFlag) EnumDescriptor

func (DataHashFlag) EnumDescriptor() ([]byte, []int)

func (DataHashFlag) String

func (x DataHashFlag) String() string

type HasVote

type HasVote struct {
	Height int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round  int32         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type   SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	Index  int32         `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
}

HasVote is sent to indicate that a particular vote has been received.

func (*HasVote) Descriptor

func (*HasVote) Descriptor() ([]byte, []int)

func (*HasVote) GetHeight

func (m *HasVote) GetHeight() int64

func (*HasVote) GetIndex

func (m *HasVote) GetIndex() int32

func (*HasVote) GetRound

func (m *HasVote) GetRound() int32

func (*HasVote) GetType

func (m *HasVote) GetType() SignedMsgType

func (*HasVote) Marshal

func (m *HasVote) Marshal() (dAtA []byte, err error)

func (*HasVote) MarshalTo

func (m *HasVote) MarshalTo(dAtA []byte) (int, error)

func (*HasVote) MarshalToSizedBuffer

func (m *HasVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HasVote) ProtoMessage

func (*HasVote) ProtoMessage()

func (*HasVote) Reset

func (m *HasVote) Reset()

func (*HasVote) Size

func (m *HasVote) Size() (n int)

func (*HasVote) String

func (m *HasVote) String() string

func (*HasVote) Unmarshal

func (m *HasVote) Unmarshal(dAtA []byte) error

func (*HasVote) XXX_DiscardUnknown

func (m *HasVote) XXX_DiscardUnknown()

func (*HasVote) XXX_Marshal

func (m *HasVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HasVote) XXX_Merge

func (m *HasVote) XXX_Merge(src proto.Message)

func (*HasVote) XXX_Size

func (m *HasVote) XXX_Size() int

func (*HasVote) XXX_Unmarshal

func (m *HasVote) 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
	LastDataHash DataHash `protobuf:"bytes,5,opt,name=last_data_hash,json=lastDataHash,proto3" json:"last_data_hash"`
	// hashes of block data
	LastCommitHash []byte `protobuf:"bytes,6,opt,name=last_commit_hash,json=lastCommitHash,proto3" json:"last_commit_hash,omitempty"`
	DataHash       []byte `protobuf:"bytes,7,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	// hashes from the app output from the prev block
	ValidatorsHash     []byte `protobuf:"bytes,8,opt,name=validators_hash,json=validatorsHash,proto3" json:"validators_hash,omitempty"`
	NextValidatorsHash []byte `protobuf:"bytes,9,opt,name=next_validators_hash,json=nextValidatorsHash,proto3" json:"next_validators_hash,omitempty"`
	ConsensusHash      []byte `protobuf:"bytes,10,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
	AppHash            []byte `protobuf:"bytes,11,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	LastResultsHash    []byte `protobuf:"bytes,12,opt,name=last_results_hash,json=lastResultsHash,proto3" json:"last_results_hash,omitempty"`
	// consensus info
	EvidenceHash    []byte `protobuf:"bytes,13,opt,name=evidence_hash,json=evidenceHash,proto3" json:"evidence_hash,omitempty"`
	ProposerAddress []byte `protobuf:"bytes,14,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
}

Header defines the structure of a Tendermint block header.

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetAppHash

func (m *Header) GetAppHash() []byte

func (*Header) GetChainID

func (m *Header) GetChainID() string

func (*Header) GetConsensusHash

func (m *Header) GetConsensusHash() []byte

func (*Header) GetDataHash

func (m *Header) GetDataHash() []byte

func (*Header) GetEvidenceHash

func (m *Header) GetEvidenceHash() []byte

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetLastCommitHash

func (m *Header) GetLastCommitHash() []byte

func (*Header) GetLastDataHash

func (m *Header) GetLastDataHash() DataHash

func (*Header) GetLastResultsHash

func (m *Header) GetLastResultsHash() []byte

func (*Header) GetNextValidatorsHash

func (m *Header) GetNextValidatorsHash() []byte

func (*Header) GetProposerAddress

func (m *Header) GetProposerAddress() []byte

func (*Header) GetTime

func (m *Header) GetTime() time.Time

func (*Header) GetValidatorsHash

func (m *Header) GetValidatorsHash() []byte

func (*Header) GetVersion

func (m *Header) GetVersion() version.Consensus

func (*Header) Marshal

func (m *Header) Marshal() (dAtA []byte, err error)

func (*Header) MarshalTo

func (m *Header) MarshalTo(dAtA []byte) (int, error)

func (*Header) MarshalToSizedBuffer

func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

func (m *Header) Size() (n int)

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

func (m *Header) Unmarshal(dAtA []byte) error

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Header) XXX_Merge

func (m *Header) XXX_Merge(src proto.Message)

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

func (m *Header) XXX_Unmarshal(b []byte) error

type Message

type Message struct {
	// Types that are valid to be assigned to Sum:
	//	*Message_Proposal
	//	*Message_Vote
	Sum isMessage_Sum `protobuf_oneof:"sum"`
}

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetProposal

func (m *Message) GetProposal() *Proposal

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) GetVote

func (m *Message) GetVote() *Vote

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_Proposal

type Message_Proposal struct {
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"`
}

func (*Message_Proposal) MarshalTo

func (m *Message_Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Message_Proposal) MarshalToSizedBuffer

func (m *Message_Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_Proposal) Size

func (m *Message_Proposal) Size() (n int)

type Message_Vote

type Message_Vote struct {
	Vote *Vote `protobuf:"bytes,2,opt,name=vote,proto3,oneof" json:"vote,omitempty"`
}

func (*Message_Vote) MarshalTo

func (m *Message_Vote) MarshalTo(dAtA []byte) (int, error)

func (*Message_Vote) MarshalToSizedBuffer

func (m *Message_Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_Vote) Size

func (m *Message_Vote) Size() (n int)

type NewRoundStep

type NewRoundStep struct {
	Height                int64  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round                 int32  `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Step                  uint32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
	SecondsSinceStartTime int64  `` /* 129-byte string literal not displayed */
	LastCommitRound       int32  `protobuf:"varint,5,opt,name=last_commit_round,json=lastCommitRound,proto3" json:"last_commit_round,omitempty"`
}

NewRoundStep is sent for every step taken in the ConsensusState. For every height/round/step transition

func (*NewRoundStep) Descriptor

func (*NewRoundStep) Descriptor() ([]byte, []int)

func (*NewRoundStep) GetHeight

func (m *NewRoundStep) GetHeight() int64

func (*NewRoundStep) GetLastCommitRound

func (m *NewRoundStep) GetLastCommitRound() int32

func (*NewRoundStep) GetRound

func (m *NewRoundStep) GetRound() int32

func (*NewRoundStep) GetSecondsSinceStartTime

func (m *NewRoundStep) GetSecondsSinceStartTime() int64

func (*NewRoundStep) GetStep

func (m *NewRoundStep) GetStep() uint32

func (*NewRoundStep) Marshal

func (m *NewRoundStep) Marshal() (dAtA []byte, err error)

func (*NewRoundStep) MarshalTo

func (m *NewRoundStep) MarshalTo(dAtA []byte) (int, error)

func (*NewRoundStep) MarshalToSizedBuffer

func (m *NewRoundStep) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NewRoundStep) ProtoMessage

func (*NewRoundStep) ProtoMessage()

func (*NewRoundStep) Reset

func (m *NewRoundStep) Reset()

func (*NewRoundStep) Size

func (m *NewRoundStep) Size() (n int)

func (*NewRoundStep) String

func (m *NewRoundStep) String() string

func (*NewRoundStep) Unmarshal

func (m *NewRoundStep) Unmarshal(dAtA []byte) error

func (*NewRoundStep) XXX_DiscardUnknown

func (m *NewRoundStep) XXX_DiscardUnknown()

func (*NewRoundStep) XXX_Marshal

func (m *NewRoundStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewRoundStep) XXX_Merge

func (m *NewRoundStep) XXX_Merge(src proto.Message)

func (*NewRoundStep) XXX_Size

func (m *NewRoundStep) XXX_Size() int

func (*NewRoundStep) XXX_Unmarshal

func (m *NewRoundStep) XXX_Unmarshal(b []byte) error

type NewValidBlock

type NewValidBlock struct {
	Height     int64          `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round      int32          `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	BlockParts *bits.BitArray `protobuf:"bytes,4,opt,name=block_parts,json=blockParts,proto3" json:"block_parts,omitempty"`
	IsCommit   bool           `protobuf:"varint,5,opt,name=is_commit,json=isCommit,proto3" json:"is_commit,omitempty"`
}

NewValidBlock is sent when a validator observes a valid block B in some round r, i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r. In case the block is also committed, then IsCommit flag is set to true.

func (*NewValidBlock) Descriptor

func (*NewValidBlock) Descriptor() ([]byte, []int)

func (*NewValidBlock) GetBlockParts

func (m *NewValidBlock) GetBlockParts() *bits.BitArray

func (*NewValidBlock) GetHeight

func (m *NewValidBlock) GetHeight() int64

func (*NewValidBlock) GetIsCommit

func (m *NewValidBlock) GetIsCommit() bool

func (*NewValidBlock) GetRound

func (m *NewValidBlock) GetRound() int32

func (*NewValidBlock) Marshal

func (m *NewValidBlock) Marshal() (dAtA []byte, err error)

func (*NewValidBlock) MarshalTo

func (m *NewValidBlock) MarshalTo(dAtA []byte) (int, error)

func (*NewValidBlock) MarshalToSizedBuffer

func (m *NewValidBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NewValidBlock) ProtoMessage

func (*NewValidBlock) ProtoMessage()

func (*NewValidBlock) Reset

func (m *NewValidBlock) Reset()

func (*NewValidBlock) Size

func (m *NewValidBlock) Size() (n int)

func (*NewValidBlock) String

func (m *NewValidBlock) String() string

func (*NewValidBlock) Unmarshal

func (m *NewValidBlock) Unmarshal(dAtA []byte) error

func (*NewValidBlock) XXX_DiscardUnknown

func (m *NewValidBlock) XXX_DiscardUnknown()

func (*NewValidBlock) XXX_Marshal

func (m *NewValidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewValidBlock) XXX_Merge

func (m *NewValidBlock) XXX_Merge(src proto.Message)

func (*NewValidBlock) XXX_Size

func (m *NewValidBlock) XXX_Size() int

func (*NewValidBlock) XXX_Unmarshal

func (m *NewValidBlock) XXX_Unmarshal(b []byte) error

type Part

type Part struct {
	Index uint32       `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Bytes []byte       `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	Proof crypto.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof"`
}

func (*Part) Descriptor

func (*Part) Descriptor() ([]byte, []int)

func (*Part) GetBytes

func (m *Part) GetBytes() []byte

func (*Part) GetIndex

func (m *Part) GetIndex() uint32

func (*Part) GetProof

func (m *Part) GetProof() crypto.Proof

func (*Part) Marshal

func (m *Part) Marshal() (dAtA []byte, err error)

func (*Part) MarshalTo

func (m *Part) MarshalTo(dAtA []byte) (int, error)

func (*Part) MarshalToSizedBuffer

func (m *Part) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) Reset

func (m *Part) Reset()

func (*Part) Size

func (m *Part) Size() (n int)

func (*Part) String

func (m *Part) String() string

func (*Part) Unmarshal

func (m *Part) Unmarshal(dAtA []byte) error

func (*Part) XXX_DiscardUnknown

func (m *Part) XXX_DiscardUnknown()

func (*Part) XXX_Marshal

func (m *Part) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Part) XXX_Merge

func (m *Part) XXX_Merge(src proto.Message)

func (*Part) XXX_Size

func (m *Part) XXX_Size() int

func (*Part) XXX_Unmarshal

func (m *Part) XXX_Unmarshal(b []byte) error

type PartSetHeader

type PartSetHeader struct {
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hash  []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
}

PartsetHeader

func (*PartSetHeader) Descriptor

func (*PartSetHeader) Descriptor() ([]byte, []int)

func (*PartSetHeader) GetHash

func (m *PartSetHeader) GetHash() []byte

func (*PartSetHeader) GetTotal

func (m *PartSetHeader) GetTotal() uint32

func (*PartSetHeader) Marshal

func (m *PartSetHeader) Marshal() (dAtA []byte, err error)

func (*PartSetHeader) MarshalTo

func (m *PartSetHeader) MarshalTo(dAtA []byte) (int, error)

func (*PartSetHeader) MarshalToSizedBuffer

func (m *PartSetHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PartSetHeader) ProtoMessage

func (*PartSetHeader) ProtoMessage()

func (*PartSetHeader) Reset

func (m *PartSetHeader) Reset()

func (*PartSetHeader) Size

func (m *PartSetHeader) Size() (n int)

func (*PartSetHeader) String

func (m *PartSetHeader) String() string

func (*PartSetHeader) Unmarshal

func (m *PartSetHeader) Unmarshal(dAtA []byte) error

func (*PartSetHeader) XXX_DiscardUnknown

func (m *PartSetHeader) XXX_DiscardUnknown()

func (*PartSetHeader) XXX_Marshal

func (m *PartSetHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PartSetHeader) XXX_Merge

func (m *PartSetHeader) XXX_Merge(src proto.Message)

func (*PartSetHeader) XXX_Size

func (m *PartSetHeader) XXX_Size() int

func (*PartSetHeader) XXX_Unmarshal

func (m *PartSetHeader) XXX_Unmarshal(b []byte) error

type Proposal

type Proposal struct {
	Type      SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	Round     int32         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	PolRound  int32         `protobuf:"varint,3,opt,name=pol_round,json=polRound,proto3" json:"pol_round,omitempty"`
	Data      []byte        `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Timestamp time.Time     `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	Signature []byte        `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
}

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) GetData

func (m *Proposal) GetData() []byte

func (*Proposal) GetPolRound

func (m *Proposal) GetPolRound() int32

func (*Proposal) GetRound

func (m *Proposal) GetRound() int32

func (*Proposal) GetSignature

func (m *Proposal) GetSignature() []byte

func (*Proposal) GetTimestamp

func (m *Proposal) GetTimestamp() time.Time

func (*Proposal) GetType

func (m *Proposal) GetType() SignedMsgType

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) MarshalToSizedBuffer

func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type ProposalPOL

type ProposalPOL struct {
	Height           int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	ProposalPolRound int32         `protobuf:"varint,2,opt,name=proposal_pol_round,json=proposalPolRound,proto3" json:"proposal_pol_round,omitempty"`
	ProposalPol      bits.BitArray `protobuf:"bytes,3,opt,name=proposal_pol,json=proposalPol,proto3" json:"proposal_pol"`
}

ProposalPOL is sent when a previous proposal is re-proposed.

func (*ProposalPOL) Descriptor

func (*ProposalPOL) Descriptor() ([]byte, []int)

func (*ProposalPOL) GetHeight

func (m *ProposalPOL) GetHeight() int64

func (*ProposalPOL) GetProposalPol

func (m *ProposalPOL) GetProposalPol() bits.BitArray

func (*ProposalPOL) GetProposalPolRound

func (m *ProposalPOL) GetProposalPolRound() int32

func (*ProposalPOL) Marshal

func (m *ProposalPOL) Marshal() (dAtA []byte, err error)

func (*ProposalPOL) MarshalTo

func (m *ProposalPOL) MarshalTo(dAtA []byte) (int, error)

func (*ProposalPOL) MarshalToSizedBuffer

func (m *ProposalPOL) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProposalPOL) ProtoMessage

func (*ProposalPOL) ProtoMessage()

func (*ProposalPOL) Reset

func (m *ProposalPOL) Reset()

func (*ProposalPOL) Size

func (m *ProposalPOL) Size() (n int)

func (*ProposalPOL) String

func (m *ProposalPOL) String() string

func (*ProposalPOL) Unmarshal

func (m *ProposalPOL) Unmarshal(dAtA []byte) error

func (*ProposalPOL) XXX_DiscardUnknown

func (m *ProposalPOL) XXX_DiscardUnknown()

func (*ProposalPOL) XXX_Marshal

func (m *ProposalPOL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalPOL) XXX_Merge

func (m *ProposalPOL) XXX_Merge(src proto.Message)

func (*ProposalPOL) XXX_Size

func (m *ProposalPOL) XXX_Size() int

func (*ProposalPOL) XXX_Unmarshal

func (m *ProposalPOL) XXX_Unmarshal(b []byte) error

type SignedMsgType

type SignedMsgType int32

SignedMsgType is a type of signed message in the consensus.

const (
	UnknownType SignedMsgType = 0
	// Votes
	PrevoteType   SignedMsgType = 1
	PrecommitType SignedMsgType = 2
	// Proposals
	ProposalType SignedMsgType = 32
)

func (SignedMsgType) EnumDescriptor

func (SignedMsgType) EnumDescriptor() ([]byte, []int)

func (SignedMsgType) String

func (x SignedMsgType) String() string

type SimpleValidator

type SimpleValidator struct {
	PubKey      *crypto.PublicKey `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower int64             `protobuf:"varint,2,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
}

func (*SimpleValidator) Descriptor

func (*SimpleValidator) Descriptor() ([]byte, []int)

func (*SimpleValidator) GetPubKey

func (m *SimpleValidator) GetPubKey() *crypto.PublicKey

func (*SimpleValidator) GetVotingPower

func (m *SimpleValidator) GetVotingPower() int64

func (*SimpleValidator) Marshal

func (m *SimpleValidator) Marshal() (dAtA []byte, err error)

func (*SimpleValidator) MarshalTo

func (m *SimpleValidator) MarshalTo(dAtA []byte) (int, error)

func (*SimpleValidator) MarshalToSizedBuffer

func (m *SimpleValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SimpleValidator) ProtoMessage

func (*SimpleValidator) ProtoMessage()

func (*SimpleValidator) Reset

func (m *SimpleValidator) Reset()

func (*SimpleValidator) Size

func (m *SimpleValidator) Size() (n int)

func (*SimpleValidator) String

func (m *SimpleValidator) String() string

func (*SimpleValidator) Unmarshal

func (m *SimpleValidator) Unmarshal(dAtA []byte) error

func (*SimpleValidator) XXX_DiscardUnknown

func (m *SimpleValidator) XXX_DiscardUnknown()

func (*SimpleValidator) XXX_Marshal

func (m *SimpleValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleValidator) XXX_Merge

func (m *SimpleValidator) XXX_Merge(src proto.Message)

func (*SimpleValidator) XXX_Size

func (m *SimpleValidator) XXX_Size() int

func (*SimpleValidator) XXX_Unmarshal

func (m *SimpleValidator) XXX_Unmarshal(b []byte) error

type Validator

type Validator struct {
	Address          []byte           `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey           crypto.PublicKey `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key"`
	VotingPower      int64            `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ProposerPriority int64            `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
}

func (*Validator) Descriptor

func (*Validator) Descriptor() ([]byte, []int)

func (*Validator) GetAddress

func (m *Validator) GetAddress() []byte

func (*Validator) GetProposerPriority

func (m *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() crypto.PublicKey

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (*Validator) Marshal

func (m *Validator) Marshal() (dAtA []byte, err error)

func (*Validator) MarshalTo

func (m *Validator) MarshalTo(dAtA []byte) (int, error)

func (*Validator) MarshalToSizedBuffer

func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

func (m *Validator) Size() (n int)

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Validator) XXX_Merge

func (m *Validator) XXX_Merge(src proto.Message)

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

func (m *Validator) 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"`
}

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) MarshalTo

func (m *ValidatorSet) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorSet) MarshalToSizedBuffer

func (m *ValidatorSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorSet) ProtoMessage

func (*ValidatorSet) ProtoMessage()

func (*ValidatorSet) Reset

func (m *ValidatorSet) Reset()

func (*ValidatorSet) Size

func (m *ValidatorSet) Size() (n int)

func (*ValidatorSet) String

func (m *ValidatorSet) String() string

func (*ValidatorSet) Unmarshal

func (m *ValidatorSet) Unmarshal(dAtA []byte) error

func (*ValidatorSet) XXX_DiscardUnknown

func (m *ValidatorSet) XXX_DiscardUnknown()

func (*ValidatorSet) XXX_Marshal

func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValidatorSet) XXX_Merge

func (m *ValidatorSet) XXX_Merge(src proto.Message)

func (*ValidatorSet) XXX_Size

func (m *ValidatorSet) XXX_Size() int

func (*ValidatorSet) XXX_Unmarshal

func (m *ValidatorSet) XXX_Unmarshal(b []byte) error

type Vote

type Vote struct {
	Type             SignedMsgType `protobuf:"varint,1,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	Height           int64         `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Round            int32         `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	DataHash         DataHash      `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"`
	Timestamp        time.Time     `protobuf:"bytes,5,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
	ValidatorAddress []byte        `protobuf:"bytes,6,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	ValidatorIndex   int32         `protobuf:"varint,7,opt,name=validator_index,json=validatorIndex,proto3" json:"validator_index,omitempty"`
	Signature        []byte        `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
}

Vote represents a prevote, precommit, or commit vote from validators for consensus.

func (*Vote) Descriptor

func (*Vote) Descriptor() ([]byte, []int)

func (*Vote) GetDataHash

func (m *Vote) GetDataHash() DataHash

func (*Vote) GetHeight

func (m *Vote) GetHeight() int64

func (*Vote) GetRound

func (m *Vote) GetRound() int32

func (*Vote) GetSignature

func (m *Vote) GetSignature() []byte

func (*Vote) GetTimestamp

func (m *Vote) GetTimestamp() time.Time

func (*Vote) GetType

func (m *Vote) GetType() SignedMsgType

func (*Vote) GetValidatorAddress

func (m *Vote) GetValidatorAddress() []byte

func (*Vote) GetValidatorIndex

func (m *Vote) GetValidatorIndex() int32

func (*Vote) Marshal

func (m *Vote) Marshal() (dAtA []byte, err error)

func (*Vote) MarshalTo

func (m *Vote) MarshalTo(dAtA []byte) (int, error)

func (*Vote) MarshalToSizedBuffer

func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

func (m *Vote) Size() (n int)

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

func (m *Vote) Unmarshal(dAtA []byte) error

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vote) XXX_Merge

func (m *Vote) XXX_Merge(src proto.Message)

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

func (m *Vote) XXX_Unmarshal(b []byte) error

type VoteSetBits

type VoteSetBits struct {
	Height   int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round    int32         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type     SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	DataHash DataHash      `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"`
	Votes    bits.BitArray `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes"`
}

VoteSetBits is sent to communicate the bit-array of votes seen for the BlockID.

func (*VoteSetBits) Descriptor

func (*VoteSetBits) Descriptor() ([]byte, []int)

func (*VoteSetBits) GetDataHash

func (m *VoteSetBits) GetDataHash() DataHash

func (*VoteSetBits) GetHeight

func (m *VoteSetBits) GetHeight() int64

func (*VoteSetBits) GetRound

func (m *VoteSetBits) GetRound() int32

func (*VoteSetBits) GetType

func (m *VoteSetBits) GetType() SignedMsgType

func (*VoteSetBits) GetVotes

func (m *VoteSetBits) GetVotes() bits.BitArray

func (*VoteSetBits) Marshal

func (m *VoteSetBits) Marshal() (dAtA []byte, err error)

func (*VoteSetBits) MarshalTo

func (m *VoteSetBits) MarshalTo(dAtA []byte) (int, error)

func (*VoteSetBits) MarshalToSizedBuffer

func (m *VoteSetBits) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VoteSetBits) ProtoMessage

func (*VoteSetBits) ProtoMessage()

func (*VoteSetBits) Reset

func (m *VoteSetBits) Reset()

func (*VoteSetBits) Size

func (m *VoteSetBits) Size() (n int)

func (*VoteSetBits) String

func (m *VoteSetBits) String() string

func (*VoteSetBits) Unmarshal

func (m *VoteSetBits) Unmarshal(dAtA []byte) error

func (*VoteSetBits) XXX_DiscardUnknown

func (m *VoteSetBits) XXX_DiscardUnknown()

func (*VoteSetBits) XXX_Marshal

func (m *VoteSetBits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteSetBits) XXX_Merge

func (m *VoteSetBits) XXX_Merge(src proto.Message)

func (*VoteSetBits) XXX_Size

func (m *VoteSetBits) XXX_Size() int

func (*VoteSetBits) XXX_Unmarshal

func (m *VoteSetBits) XXX_Unmarshal(b []byte) error

type VoteSetMaj23

type VoteSetMaj23 struct {
	Height   int64         `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Round    int32         `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Type     SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=pb.SignedMsgType" json:"type,omitempty"`
	DataHash DataHash      `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash"`
}

VoteSetMaj23 is sent to indicate that a given BlockID has seen +2/3 votes.

func (*VoteSetMaj23) Descriptor

func (*VoteSetMaj23) Descriptor() ([]byte, []int)

func (*VoteSetMaj23) GetDataHash

func (m *VoteSetMaj23) GetDataHash() DataHash

func (*VoteSetMaj23) GetHeight

func (m *VoteSetMaj23) GetHeight() int64

func (*VoteSetMaj23) GetRound

func (m *VoteSetMaj23) GetRound() int32

func (*VoteSetMaj23) GetType

func (m *VoteSetMaj23) GetType() SignedMsgType

func (*VoteSetMaj23) Marshal

func (m *VoteSetMaj23) Marshal() (dAtA []byte, err error)

func (*VoteSetMaj23) MarshalTo

func (m *VoteSetMaj23) MarshalTo(dAtA []byte) (int, error)

func (*VoteSetMaj23) MarshalToSizedBuffer

func (m *VoteSetMaj23) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VoteSetMaj23) ProtoMessage

func (*VoteSetMaj23) ProtoMessage()

func (*VoteSetMaj23) Reset

func (m *VoteSetMaj23) Reset()

func (*VoteSetMaj23) Size

func (m *VoteSetMaj23) Size() (n int)

func (*VoteSetMaj23) String

func (m *VoteSetMaj23) String() string

func (*VoteSetMaj23) Unmarshal

func (m *VoteSetMaj23) Unmarshal(dAtA []byte) error

func (*VoteSetMaj23) XXX_DiscardUnknown

func (m *VoteSetMaj23) XXX_DiscardUnknown()

func (*VoteSetMaj23) XXX_Marshal

func (m *VoteSetMaj23) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteSetMaj23) XXX_Merge

func (m *VoteSetMaj23) XXX_Merge(src proto.Message)

func (*VoteSetMaj23) XXX_Size

func (m *VoteSetMaj23) XXX_Size() int

func (*VoteSetMaj23) XXX_Unmarshal

func (m *VoteSetMaj23) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL