broadcast

package
v0.0.0-...-8d08d5c Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: GPL-3.0 Imports: 8 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.Block
	OnTx    chan *ngtypes.Tx
	// contains filtered or unexported fields
}

func NewBroadcastProtocol

func NewBroadcastProtocol(node core.Host, network ngtypes.NetworkType, blockCh chan *ngtypes.Block, txCh chan *ngtypes.Tx) *Broadcast

func (*Broadcast) BroadcastBlock

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

func (*Broadcast) BroadcastTx

func (b *Broadcast) BroadcastTx(tx *ngtypes.Tx) 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