Bootstrap node implementation for Detox network.
The easiest way is to start bootstrap node using Docker image, execute it without arguments to get help message with all supported commands and their arguments:
docker run --rm -it nazarpc/detox-bootstrap-node
If you want to create separate network - start without -b
option, otherwise make sure to provide a few of existing nodes from the network you want to join.
docker run -d --name detox-bootstrap-node -p <ip>:16882:16882 nazarpc/detox-bootstrap-node <seed> 0.0.0.0 <domain>[ -b bootstrap_node]
ip
- publicly available IPseed
- hex of 32-bytes seed from which bootstrap node's keypair is generated (make sure it is unique seed and keep it private)domain
- publicly available domain name (or IP) that other nodes in the network will use in order to reach this nodebootstrap_node
- information about existing bootstrap node in the network (-b
can be specified multiple times) in formhex_node_id:domain_or_ip:port
While network is tiny, for communication we might need some dummy nodes that will facilitate proper network operation.
docker run -d --name detox-dummy-clients nazarpc/detox-bootstrap-node dummy-clients <number_of_clients> -b <bootstrap_node>
number_of_clients
- how many dummy clients need to be createdbootstrap_node
- information about existing bootstrap node in the network (-b
can be specified multiple times) in formhex_node_id:domain_or_ip:port
Feel free to create issues and send pull requests (for big changes create an issue first and link it from the PR), they are highly appreciated!
When reading LiveScript code make sure to configure 1 tab to be 4 spaces (GitHub uses 8 by default), otherwise code might be hard to read.
Free Public License 1.0.0 / Zero Clause BSD License