Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgTypeBlockMessage gpa.MessageType = iota MsgTypeGetBlockMessage )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMessage ¶
type BlockMessage struct { gpa.BasicMessage // contains filtered or unexported fields }
func NewBlockMessage ¶
func NewBlockMessage(block state.Block, to gpa.NodeID) *BlockMessage
func NewEmptyBlockMessage ¶
func NewEmptyBlockMessage() *BlockMessage
func (*BlockMessage) GetBlock ¶
func (msg *BlockMessage) GetBlock() state.Block
type GetBlockMessage ¶
type GetBlockMessage struct { gpa.BasicMessage // contains filtered or unexported fields }
func NewEmptyGetBlockMessage ¶
func NewEmptyGetBlockMessage() *GetBlockMessage
func NewGetBlockMessage ¶
func NewGetBlockMessage(commitment *state.L1Commitment, to gpa.NodeID) *GetBlockMessage
func (*GetBlockMessage) GetL1Commitment ¶
func (msg *GetBlockMessage) GetL1Commitment() *state.L1Commitment
Click to show internal directories.
Click to hide internal directories.