messages

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalChannel

func NewInternalChannel() chan InternalMessage

Types

type BroadcastTransaction

type BroadcastTransaction struct {
	Response    chan error
	Transaction proto.Transaction
}

func NewBroadcastTransaction

func NewBroadcastTransaction(response chan error, transaction proto.Transaction) *BroadcastTransaction

func (*BroadcastTransaction) Internal

func (*BroadcastTransaction) Internal()

type HaltMessage

type HaltMessage struct {
	// contains filtered or unexported fields
}

func NewHaltMessage

func NewHaltMessage(response chan struct{}) *HaltMessage

func (*HaltMessage) Complete

func (a *HaltMessage) Complete()

func (HaltMessage) Internal

func (HaltMessage) Internal()

type InternalMessage

type InternalMessage interface {
	Internal()
}

type MinedBlockInternalMessage

type MinedBlockInternalMessage struct {
	Block   *proto.Block
	Limits  proto.MiningLimits
	KeyPair proto.KeyPair
	Vrf     []byte
}

func NewMinedBlockInternalMessage

func NewMinedBlockInternalMessage(block *proto.Block, limits proto.MiningLimits, keyPair proto.KeyPair, vrf []byte) *MinedBlockInternalMessage

func (*MinedBlockInternalMessage) Internal

func (a *MinedBlockInternalMessage) Internal()

type SkipMessageList added in v0.10.0

type SkipMessageList struct {
	// contains filtered or unexported fields
}

func (*SkipMessageList) List added in v0.10.0

func (*SkipMessageList) SetList added in v0.10.0

func (l *SkipMessageList) SetList(list proto.PeerMessageIDs)

Jump to

Keyboard shortcuts

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