serverSecond subnet creation, initialisation and deployment

This page will guide you to setup a second subnet. It is similar to the Creation and initialization of the first subnet.

circle-check

Step 1: Create a child subnet

Exactly the same as in Subnet creation and initialisation:

ipc-cli --config-path ~/.ipc/validator1/config.toml subnet create \
	--parent /b4 --min-validators 4 --bottomup-check-period 120 \
	btc --min-validator-stake 100000000 --min-cross-msg-fee 10 \
	--validator-whitelist $WHITELIST

Make sure you write down the subnet id or export it to a env variable $SUBNET_ID.

Step 2: Update the config.toml files

We now need to add the new subnet configuration to all of the following configuration files:

  • ~/.ipc/validator1/config.toml

  • ~/.ipc/validator2/config.toml

  • ~/.ipc/validator3/config.toml

  • ~/.ipc/validator4/config.toml

  • ~/.ipc/validator5/config.toml

  • ~/.ipc/user1/config.toml

  • ~/.ipc/user2/config.toml

  • ~/.ipc/config.toml

Notice that this time we are changing the entry for Subnet B. The config files already contain the corresponding entry, you only have to replace /b4/t410ftkmrmongfxyrefwgpyz524taorvrijfwfzrfwgy with the new subnet id.

Step 3: Join the subnet

Exactly the same as in Subnet creation and initialisation:

Step 4: Fund the validators

Exactly the same as in Subnet creation and initialisation:

Step 5: Deploy the validators

Similar to Spin up the subnet and deploy the validators, we recommend that you use the helper script to deploy the validator containers for the second subnet. This is because all the ports change, and this can be tricky to do manually.

Step 6: Check the status of the subnet

Exactly the same as in Spin up the subnet and deploy the validators:

Run the block_checker helper script:

Run the balancer helper script:

Last updated