hdfseeder

command module
v0.0.0-...-60d1eca Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: ISC Imports: 21 Imported by: 0

README

hdfseeder

Build Status ISC License

Overview

hdfseeder is a crawler for the Hdfchain network, which exposes a list of reliable nodes via a built-in HTTP server.

When hdfseeder is started for the first time, it will connect to the hdfd node specified with the -s flag, send a getaddrs request, expecting an addr message response. This message contains hostnames and IPs of peers known by the node. hdfseeder will then connect to each of these peers, send a getaddrs request, and will continue traversing the network in this fashion. hdfseeder maintains a list of all known peers and periodically checks that they are online and available. The list is stored on disk in a json file, so on subsequent start ups the hdfd node specified with -s does not need to be online.

When hdfseeder is queried for node information, it responds with details of a random selection of the reliable nodes it knows about.

Requirements

Go 1.12 or newer.

Getting Started

To build and install from a checked-out repo, run go install in the repo's root directory.

To start hdfseeder listening on udp 127.0.0.1:5354 with an initial connection to working testnet node 192.168.0.1:

$ ./hdfseeder -s 192.168.0.1 --testnet --httplisten=localhost:8000

You will then need to redirect HTTPS traffic on your public IP to localhost:8000

For more information about Hdfchain and how to set up your software please go to our docs page at docs.clkj.ltd.

Issue Tracker

The integrated github issue tracker is used for this project.

License

hdfseeder is licensed under the copyfree ISC License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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