smMessages

package
v0.4.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypeBlockMessage = 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 (bmT *BlockMessage) GetBlock() state.Block

func (*BlockMessage) MarshalBinary

func (bmT *BlockMessage) MarshalBinary() (data []byte, err error)

func (*BlockMessage) UnmarshalBinary

func (bmT *BlockMessage) UnmarshalBinary(data []byte) error

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 (gbmT *GetBlockMessage) GetL1Commitment() *state.L1Commitment

func (*GetBlockMessage) MarshalBinary

func (gbmT *GetBlockMessage) MarshalBinary() (data []byte, err error)

func (*GetBlockMessage) UnmarshalBinary

func (gbmT *GetBlockMessage) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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