Start Bootstrap Node
Last updated
Last updated
A bootstrap node is a persistent, well-known node that helps new peers discover and connect to the peer-to-peer (P2P) network. It acts as an entry point for nodes joining the network for the first time.
A bootstrap node doesn't hold transformer blocks and, therefore, doesn't require a GPU.
A bootstrap node is linked to a subnet node and uses that subnet node as its PoS (proof of stake) to enter the subnet DHT.
In the step, a bootstrap private key will be created to generate a bootstrap Peer ID. The bootstrap Peer ID is then submitted while the subnet node on-chain. While having a bootstrap node isn't required, it is suggested that each node has one.
--host_maddr
(Optional):
You can remove this argument and a port will be chosen for you.
Multiaddrs to listen for external connections from other DHT instances.
Defaults to all IPv4 interfaces and the TCP protocol: /ip4/0.0.0.0/tcp/0
.
--subnet_id
: The ID of the subnet.
--identity_path
: The path to the ed25519 private key file previously generated in the step.
This defaults to bootstrap_private_key.key
--initial_peers
:
If the subnet has not been deployed yet and you're the first node to deploy the subnet, remove this argument.
If the subnet is already running, pass in other bootstrap nodes.
Run a bootstrap node for others to connect to.
Start consensus integration automatically once the node is activated.
The /ip4/127.0.0.1/tcp/39013/p2p/12D3KooWMRSF23cFaFPTM9YTz712BSntSY5WmA88Db12E9NqtT8S
is the bootstrap node you can share with others so they can connect to the subnet.
Subnet nodes can update their bootstrap node on the fly.
To connect to the subnet, the blockchain must know your subnet node owns the bootstrap ID.
While another subnet node can connect using your validator node multiaddress, installing the bootstrap node will allow you to keep your validator node IP and port private from the general public.
This node can be temporarily started to help others get connected to the subnet.