# Updates and additional settings
# Upgrade the testnet
These instructions are for full nodes running previous testnets that would like to upgrade to the latest testnet.
# 1. Reset data
Remove the outdated files and reset data:
Your node is now in a pristine state, keeping the original
config.toml. If you had any sentry nodes or full nodes set up before,
your node will still try to connect to them but may fail if they haven't also been upgraded.
Make sure that every node has a unique
priv_validator.json. Do not copy
priv_validator.json from an old node to multiple new nodes. Running
two nodes with the same
priv_validator.json will cause you to double sign.
# 2. Software upgrade
Now it is time to upgrade the software. Go to the project directory and run:
git checkout master && git pull
go build ./cmd/palomad
If you have issues at this step, please check that you have a compatible version of GO installed (v1.18+).
The previous command uses
master as it contains the latest stable release.
See Paloma release page (opens new window) for details on each release.
Your full node is now cleanly upgraded!
# Exporting state
Paloma can export the entire application state to a JSON file. You can use this file for manual analysis or as the genesis file of a new network.
palomad export > [filename].json
You can also export a state from a particular height. The following command will export the state after the block height you specify:
palomad export --height [height] > [filename].json
If you plan to start a new network from the exported state, export
palomad export --height [height] --for-zero-height > [filename].json
For more information on seeds and peers, visit the Tendermint documentation (opens new window).
# Additional Settings
In seed mode, your node constantly crawls the network and looks for peers. If another node asks it for addresses, it responds and disconnects. Seed mode will not work if the peer-exchange reactor is disabled.
seed_mode = true
To manually identify seed nodes, edit the following setting in
# Comma separated list of seed nodes to connect to
seeds = "email@example.com:26656,firstname.lastname@example.org:4444"
The nodes you specify are the trusted persistent peers that can help anchor your node in the p2p network. If the connection fails, they are dialed and automatically redialed for 24 hours. The automatic redial function uses exponential backoff and stops after 24 hours of trying to connect.
If the value of
persistent_peers_max_dial_period is more than zero,
the pause between each call to each persistent peer will not exceed
persistent_peers_max_dial_period during exponential backoff, and the
automatic redial process continues.
# Comma separated list of nodes to keep persistent connections to
persistent_peers = "email@example.com:26656,firstname.lastname@example.org:26656"