Skip to content

Blobstream bootstrapper

To bootstrap the Blobstream P2P network, we use the bootstrapper Blobstream node type to accept connections from freshly created orchestrators/relayers and share its peer table with them.

How to run

Install the Blobstream binary

Make sure to have the Blobstream binary installed. Check the Blobstream binary page for more details.

Init the store

Before starting the bootstrapper, we will need to init the store:

sh
blobstream bootstrapper init
blobstream bootstrapper init

By default, the store will be created un ~/.bootstrapper. However, if you want to specify a custom location, you can use the --home flag. Or, you can use the following environment variable:

VariableExplanationDefault valueRequired
BOOTSTRAPPER_HOMEHome directory for the bootstrapper~/.bootstrapperOptional

Add keys

The P2P private key is optional, and a new one will be generated automatically on the start if none is provided.

The p2p sub-command will help you set up this key if you want to use a specific one:

sh
blobstream bootstrapper p2p  --help
blobstream bootstrapper p2p  --help

Open the P2P port

In order for the bootstrapper node to work, you will need to expose the P2P port, which is by default 30000.

Start the bootstrapper

Now that we have the store initialized, we can start the bootstrapper:

shell
blobstream bootstrapper start
blobstream bootstrapper start

Systemd service

An example of a systemd service that can be used for bootstrappers can be found in the orchestrator documentation.