dv5

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleName = "DV5"
)

Functions

func ReadEth2BootnodeFile

func ReadEth2BootnodeFile(jfile string) ([]*ethenode.Node, error)

ImportBootNodeList This method will read the bootnodes list in string format and create an enode array with the parsed ENRs of the bootnodes. @param import_json_file represents the file where to read the bootnodes from. This file is configured in the config file.

Types

type Discovery

type Discovery struct {
	Node        *enode.LocalNode
	Dv5Listener *discover.UDPv5
	Iterator    ethenode.Iterator
	// Filtering
	FilterDigest string
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery(ctx context.Context, node *enode.LocalNode, privkey *ecdsa.PrivateKey, bootnodes []*ethenode.Node, fdigest string, port int) (*Discovery, error)

NewDiscovery

func (*Discovery) Next

func (d *Discovery) Next() bool

Next

func (*Discovery) Peer

func (d *Discovery) Peer() (models.Peer, bool)

Peer

func (*Discovery) Start

func (d *Discovery) Start()

Start

Jump to

Keyboard shortcuts

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