p2phandlers

package
v0.0.0-...-77960fc Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHandler

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

BlockHandler is a container for tx related handlers

func NewBlockHandler

func NewBlockHandler(host Host, pls *plasma.Plasma) *BlockHandler

type Host

type Host interface {
	host.Host
	SendMsg(proto string, peerid ipeer.ID, data interface{}) error
	Request(proto string, peerid ipeer.ID, data interface{}) ([]byte, error)
	Response(s inet.Stream, data interface{}) error
	Decode(data []byte, out interface{}) error
	PeerIDs() []ipeer.ID
	PeerIDsWithoutTx(hash common.Hash) []ipeer.ID
	PeerIDsWithoutBlock(hash common.Hash) []ipeer.ID
	MarkTxs(peerid ipeer.ID, txs types.Transactions)
	MarkBlock(peerid ipeer.ID, block *types.Block)
}

type TxHandler

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

TxHandler is a container for tx related handlers

func NewTxHandler

func NewTxHandler(host Host, pls *plasma.Plasma) *TxHandler

Jump to

Keyboard shortcuts

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