broadcast

package
v0.0.0-...-e87e1d8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcast

type Broadcast struct {
	PubSub *pubsub.PubSub

	OnBlock chan *ngtypes.FullBlock
	OnTx    chan *ngtypes.FullTx
	// contains filtered or unexported fields
}

func NewBroadcastProtocol

func NewBroadcastProtocol(node core.Host, network ngtypes.Network, blockCh chan *ngtypes.FullBlock, txCh chan *ngtypes.FullTx) *Broadcast

func (*Broadcast) BroadcastBlock

func (b *Broadcast) BroadcastBlock(block *ngtypes.FullBlock) error

func (*Broadcast) BroadcastTx

func (b *Broadcast) BroadcastTx(tx *ngtypes.FullTx) error

func (*Broadcast) GoServe

func (b *Broadcast) GoServe()

Jump to

Keyboard shortcuts

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