Updates and Additional Settings

Upgrade the Testnet

These instructions are for full nodes running older testnets that would like to upgrade to the latest testnet.

1. Reset Data

Remove the outdated files and reset the data:

rm ~/.xpla/config/genesis.json
rm ~/.xpla/config/addrbook.json
xplad unsafe-reset-all

Your node is now in a pristine state, keeping the original priv_validator.json and 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.

2. Software Upgrade

Now it is time to upgrade the software. Go to the project directory and run:

git checkout master && git pull

The previous command uses master as it contains the latest stable release. See the testnet repo for details on which version is needed for which testnet, and the XPLA Chain Core release page for details on each release.

Your full node is now cleanly upgraded!

Exporting State

XPLA Chain 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.

Export state:

xplad 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:

xplad export --height [height] > [filename].json

If you plan to start a new network from the exported state, export with the --for-zero-height flag:

xplad export --height [height] --for-zero-height > [filename].json

Additional Settings


In seed mode, your node constantly crawls the network and looks for peers. If another node requests 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 config.toml.

# Comma separated list of seed nodes to connect to
seeds = "id100000000000000000000000000000000@,id200000000000000000000000000000000@"


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 functionality 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 = "id100000000000000000000000000000000@,id200000000000000000000000000000000@"


Integrate XPLA Chain with Coinbase via the Rosetta API. Rosetta is an open-source API that organizes blockchain data into a standardized format, making it easy for developers to build cross-chain applications. Instead of creating specific code for each chain, Rosetta allows different blockchains to integrate into any exchange that uses Rosetta API.

For more information, visit the Rosetta docs site.