Running a main network node

1/ Initialize your node
Replace <moniker> by the node name of your choice
$ lumd init <moniker> --chain-id lum-network-1
2/ Edit the config files
$ nano ~/.lumd/config/config.toml
Search for "seed_peers" and replace the value as following:
seeds = "19ad16527c98b78[email protected]:26656"
Once opened, search for "persistent_peers" and replace the value as following:
persistent_peers = ",[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:46656,[email protected]:26656,[email protected]:26656,2cd[email protected]:26656"
Get the genesis file and put it in ~/.lumd/config/genesis.json (you can replace it if one was generated automatically) and double check the sha256sum.
$ curl -s > ~/.lumd/config/genesis.json
$ sha256sum ~/.lumd/config/genesis.json
2-bis/ Synchronize from latest up-to-date state machine
You are offered a possibility to avoid syncing every single code / state machine upgrade by using ChainLayer's QuickSync service.
You can find relevant URLs and hashes here:
Different versions are available:
  • Pruned: lightweight version of the state machine, only contains recent blocks / transactions in full
  • Default: standard version of the state machine
When using the commands provided by QuickSync, please make sure that you edit the relevant paths and other configuration according to your setup.
3/ Start your node
$ lumd start
You will now notice that the node starts to sync the blockchain history.
But, as soon as you quit the SSH screen or close the window, you will kill it. To avoid doing this launch it in a daemon process:
$ sudo nano /etc/systemd/system/lumd.service
Copy and paste the following and update <YOUR_HOME_PATH>:
Description=Lum Network daemon
ExecStart=/<YOUR_HOME_PATH>/go/bin/lumd start --p2p.laddr tcp:// --home /<YOUR_HOME_PATH>/.lumd
Enable and start the new service:
$ sudo systemctl enable lumd
$ sudo systemctl start lumd
Check your node status:
$ lumd status
Check your node logs:
$ journalctl -u lumd -f