Documentation ¶
Index ¶
- Variables
- type BlockContainer
- func (*BlockContainer) Descriptor() ([]byte, []int)
- func (m *BlockContainer) GetBlock() *iotextypes.Block
- func (*BlockContainer) ProtoMessage()
- func (m *BlockContainer) Reset()
- func (m *BlockContainer) String() string
- func (m *BlockContainer) XXX_DiscardUnknown()
- func (m *BlockContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockContainer) XXX_Merge(src proto.Message)
- func (m *BlockContainer) XXX_Size() int
- func (m *BlockContainer) XXX_Unmarshal(b []byte) error
- type BlockSync
- func (*BlockSync) Descriptor() ([]byte, []int)
- func (m *BlockSync) GetEnd() uint64
- func (m *BlockSync) GetStart() uint64
- func (*BlockSync) ProtoMessage()
- func (m *BlockSync) Reset()
- func (m *BlockSync) String() string
- func (m *BlockSync) XXX_DiscardUnknown()
- func (m *BlockSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockSync) XXX_Merge(src proto.Message)
- func (m *BlockSync) XXX_Size() int
- func (m *BlockSync) XXX_Unmarshal(b []byte) error
- type Consensus
- func (*Consensus) Descriptor() ([]byte, []int)
- func (m *Consensus) GetData() []byte
- func (m *Consensus) GetHeight() uint64
- func (m *Consensus) GetRound() uint32
- func (m *Consensus) GetTimestamp() *timestamp.Timestamp
- func (m *Consensus) GetType() Consensus_ConsensusMessageType
- func (*Consensus) ProtoMessage()
- func (m *Consensus) Reset()
- func (m *Consensus) String() string
- func (m *Consensus) XXX_DiscardUnknown()
- func (m *Consensus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Consensus) XXX_Merge(src proto.Message)
- func (m *Consensus) XXX_Size() int
- func (m *Consensus) XXX_Unmarshal(b []byte) error
- type Consensus_ConsensusMessageType
Constants ¶
This section is empty.
Variables ¶
View Source
var Consensus_ConsensusMessageType_name = map[int32]string{
0: "PROPOSAL",
1: "ENDORSEMENT",
}
View Source
var Consensus_ConsensusMessageType_value = map[string]int32{
"PROPOSAL": 0,
"ENDORSEMENT": 1,
}
Functions ¶
This section is empty.
Types ¶
type BlockContainer ¶
type BlockContainer struct { Block *iotextypes.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
block container used to send old/existing blocks in block sync
func (*BlockContainer) Descriptor ¶
func (*BlockContainer) Descriptor() ([]byte, []int)
func (*BlockContainer) GetBlock ¶
func (m *BlockContainer) GetBlock() *iotextypes.Block
func (*BlockContainer) ProtoMessage ¶
func (*BlockContainer) ProtoMessage()
func (*BlockContainer) Reset ¶
func (m *BlockContainer) Reset()
func (*BlockContainer) String ¶
func (m *BlockContainer) String() string
func (*BlockContainer) XXX_DiscardUnknown ¶
func (m *BlockContainer) XXX_DiscardUnknown()
func (*BlockContainer) XXX_Marshal ¶
func (m *BlockContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockContainer) XXX_Merge ¶
func (dst *BlockContainer) XXX_Merge(src proto.Message)
func (*BlockContainer) XXX_Size ¶
func (m *BlockContainer) XXX_Size() int
func (*BlockContainer) XXX_Unmarshal ¶
func (m *BlockContainer) XXX_Unmarshal(b []byte) error
type BlockSync ¶
type BlockSync struct { Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockSync) Descriptor ¶
func (*BlockSync) ProtoMessage ¶
func (*BlockSync) ProtoMessage()
func (*BlockSync) XXX_DiscardUnknown ¶
func (m *BlockSync) XXX_DiscardUnknown()
func (*BlockSync) XXX_Marshal ¶
func (*BlockSync) XXX_Unmarshal ¶
type Consensus ¶
type Consensus struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Round uint32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Type Consensus_ConsensusMessageType `protobuf:"varint,3,opt,name=type,proto3,enum=iotexrpc.Consensus_ConsensusMessageType" json:"type,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Consensus) Descriptor ¶
func (*Consensus) GetTimestamp ¶
func (*Consensus) GetType ¶
func (m *Consensus) GetType() Consensus_ConsensusMessageType
func (*Consensus) ProtoMessage ¶
func (*Consensus) ProtoMessage()
func (*Consensus) XXX_DiscardUnknown ¶
func (m *Consensus) XXX_DiscardUnknown()
func (*Consensus) XXX_Marshal ¶
func (*Consensus) XXX_Unmarshal ¶
type Consensus_ConsensusMessageType ¶
type Consensus_ConsensusMessageType int32
const ( Consensus_PROPOSAL Consensus_ConsensusMessageType = 0 Consensus_ENDORSEMENT Consensus_ConsensusMessageType = 1 )
func (Consensus_ConsensusMessageType) EnumDescriptor ¶
func (Consensus_ConsensusMessageType) EnumDescriptor() ([]byte, []int)
func (Consensus_ConsensusMessageType) String ¶
func (x Consensus_ConsensusMessageType) String() string
Click to show internal directories.
Click to hide internal directories.