network

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protocols

func Protocols(chain *Chain, name string, maxPeers int, cb *structs.Callback) []p2p.Protocol

Types

type Chain

type Chain struct {
	Name           string
	NetworkID      uint64
	BootstrapNodes []string
	StaticNodes    []string
}

func GetChain

func GetChain(name string) *Chain

func (*Chain) GetBootstraps

func (c *Chain) GetBootstraps() (node []*enode.Node)

func (*Chain) GetStatics

func (c *Chain) GetStatics() (node []*enode.Node)

type Protocol

type Protocol struct {
	Name    string
	Version uint32
	Length  uint64
}

Jump to

Keyboard shortcuts

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