bootnode

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bootnode is responsible for assembling, running and cleanly shutting down a swap bootnode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBootnode

func RunBootnode(ctx context.Context, cfg *Config) error

RunBootnode assembles and runs a bootnode instance, blocking until the node is shut down. Typically, shutdown happens because a signal handler cancels the passed in context, or when the shutdown RPC method is called.

Types

type Config

type Config struct {
	DataDir       string
	Bootnodes     []string
	P2PListenIP   string
	Libp2pPort    uint16
	Libp2pKeyFile string
	RPCPort       uint16
}

Config provides the configuration for a bootnode.

Jump to

Keyboard shortcuts

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