sm_messages

package
v1.4.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (*BlockMessage) Read

func (msg *BlockMessage) Read(r io.Reader) error

func (*BlockMessage) Write

func (msg *BlockMessage) Write(w io.Writer) 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 (msg *GetBlockMessage) GetL1Commitment() *state.L1Commitment

func (*GetBlockMessage) Read

func (msg *GetBlockMessage) Read(r io.Reader) error

func (*GetBlockMessage) Write

func (msg *GetBlockMessage) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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