Skip to main content

Running

In order to first get connected to the network you will need to synchronize the ledger. If you are within the first few epochs since genesis you have the option of booting from a snapshot or to synchronize from the genesis block. If you desire to run a historical node you may require all blocks since the genesis otherwise proceed to restoring from a snapshot.

Restore from a snapshot

In order to restore from a snapshot you will first need to download one. Visit the dashboard for your deployment and go to the network page. There you will find a list of nodes. On the right hand side you will see their snapshot state. You will want to pick the highest common snapshot. If you see a snapshot hash that is not common please avoid it as it likely has inconsistencies with the network. Clicking on the snapshot hash will take you directly to the node with a list of available snapshots. Download the first snapshot using cURL.

curl -O “http://IPV6:6862/0-INDEX-DIGEST.snapshot.xs”

Next make sure the radium-node process is not running:

pgrep -x radium-node

If there is no output the node is not running.

Basic snapshot import example:

radium-node —-deployment=DEPLOYMENT —-snapshot-import http://[IPV6]:6862/INDEX/export/0-INDEX-DIGEST.snapshot.xs
warning

The example above shows how to import a snapshot to a single drive. In order to restore a snapshot so that the epochs and ledger are on separate drives keep reading.

Import snapshot so that epochs and ledger are on separate drives.

radium-node —-deployment={DEPLOYMENT} —-snapshot-import http://[IPV6]:6862/INDEX/export/0-INDEX-DIGEST.snapshot.xs —-epochs-path=/mnt/epochs —-ledger-path=/mnt/ledger

Import snapshot so that epochs and ledger are on a separate drive from the OS but on the same drive as each other:

radium-node —-deployment={DEPLOYMENT} —-snapshot-import http://[IPV6]:6862/INDEX/export/0-INDEX-DIGEST.snapshot.xs —-epochs-path=/mnt/epochs+ledger —-ledger-path=/mnt/epochs+ledger

Start your node

Start your node using the service command for your operating system and platform.

Linux

sudo systemctl start radium-node.service

MacOS

sudo launchctl start net.radiumlabs.service

Monitor the log file

tail -f ~/.radium/data/{DEPLOYMENT}/logs/radium.log