simple-bootstrap-node

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 10 Imported by: 0

README

This project is a simple implementation of kad-dht bootstrap node based on go-libp2p.

Usage:

  1. Go module download
    go mod tidy
    
  2. Run as default(bind on '0.0.0.0' port:4001):
  • go run main.go
  1. or Run with custom:
  • go run main.go -host [host] -port [port]

example output:

[*] Listening on: 0.0.0.0 with port: 4001

[*] Your Bootstrap ID Is: /ip4/0.0.0.0/tcp/4001/p2p/QmP2C45o2vZfy1JXWFZDUEzrQCigMtd4r3nesvArV8dFKd
  1. Copy the bootstrap id to your bootstrap nodes list and enjoy.

Notice: for a test example with kad-dht, visit go-libp2p-examples

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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