fetcher

package
v0.0.0-...-041ef7d Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleaner

func Cleaner()

func GetRequest

func GetRequest() uint64

func IsRequest

func IsRequest(id uint64, from *peer.Peer) bool

func NewRequest

func NewRequest(id uint64, from *peer.Peer) uint64

func RequestBlockBodys

func RequestBlockBodys(p *peer.Peer, number uint64, hash []common.Hash) error

func RequestBlockHeader

func RequestBlockHeader(p *peer.Peer, number uint64) error

func RequestTxs

func RequestTxs(p *peer.Peer, txs []common.Hash) error

func SendAnnounceTxs

func SendAnnounceTxs(p *peer.Peer, txs []common.Hash) error

func SendBlockBodies

func SendBlockBodies(p *peer.Peer, bodys []*packet.BlockBody, requestId uint64) error

func SendBlockHeaders

func SendBlockHeaders(p *peer.Peer, headers []*types.Header, requestId uint64) error

func SendPooledTxs

func SendPooledTxs(p *peer.Peer, txs []*types.Transaction, requestId uint64) error

Types

type Request

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

Jump to

Keyboard shortcuts

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