bootnode

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cobra.Command{
	Use:   "bootnode",
	Short: "Starts a bootnode",
	Long:  "Boot nodes do nothing put seed the peer table",
	Run:   bootNode}

Command is the cobra.Command specifically for running as an edge node, i.e. not a validator or relay

Functions

This section is empty.

Types

type Server

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

Server implements the bootnode protocol

func (*Server) KnownNodes

func (bn *Server) KnownNodes(ctx context.Context, r *pb.BootNodeRequest) (*pb.BootNodeResponse, error)

KnownNodes returns a set of recently seen peers when the bootnode is connected to

Jump to

Keyboard shortcuts

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