Joining the testnet using a custom genesis
To add a node to a restored network, you’ll need to replace the default genesis file with the genesis file of a peer already in the network. You can get the genesis of a peer at/genesis. eg. https://node2.demos.sh/genesis.
At the root of the node source, you can run the following command to download and replace the genesis.json file:
demos_peerlist.json to locate the remote peer:
You can get the remote peer’s public key by going to
/info .eg. https://node2.demos.sh/info.-c true flag to delete the database: