bootnode

command
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

README

Using custom bootnode

To make custom bootnode usable it must participate in the same DHT as the target cluster.

  1. Generate private key for a node

To generate a private key you can use bootnode command line tool from go-ethereum repository. It is also available as a part of the image: ethereum/client-go:alltools-latest.

docker run --entrypoint=bootnode -v $(pwd):/keys ethereum/client-go:alltools-latest -genkey /keys/node.key
  1. Run status bootnode with new key and nursery nodes from the target cluster

Status bootnode is available as an image statusteam/bootnode:latest.

./build/bin/bootnode --nodekey=node.key --addr=192.168.0.102:30777 -n=enode://1b843c7697f6fc42a1f606fb3cfaac54e025f06789dc20ad9278be3388967cf21e3a1b1e4be51faecd66c2c3adef12e942b4fcdeb8727657abe60636efb6224f@206.189.6.46:30404
  1. Construct enode or copy it from bootnode logs.
INFO [05-24|07:50:38] UDP listener up                          net=enode://30e0735299e9e516fe9295580c122abedd12766188516be4cca1e48ebfb3a8b29da6b377a7abf5cd1685a14bc9baa99ae06e3d9d659e1d1e086deb333f7f4a59@192.168.0.102:30777

Documentation

Overview

bootnode runs a bootstrap node for the Ethereum Discovery Protocol.

Jump to

Keyboard shortcuts

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