Reset and Troubleshooting
Occasionally you may need to perform a complete reset of your node due to data corruption or misconfiguration. Resetting will remove all data in
~/.xpla/data and the addressbook in
~/.xpla/config/addrbook.json and reset the node to genesis state.
To perform a complete reset of your
xplad state, use:
xplad tendermint unsafe-reset-all
Running this command successfully will produce the following log:
[ INF ] Removed existing address book file=/home/user/.xpla/config/addrbook.json [ INF ] Removed all blockchain history dir=/home/user/.xpla/data [ INF ] Reset private validator file to genesis state keyFile=/home/user/.xpla/config/priv_validator_key.json stateFile=/home/user/.xpla/data/priv_validator_state.json
After resetting, make sure the addressbook contains peer addresses and is in the correct spot. If not, download an addressbook and place it in
To change the genesis version, delete
You can recreate a genesis version via the following steps:
xplad add-genesis-account $(xplad keys show <account-name> -a) 100000000000000000000axpla xplad gentx <account-name> 10000000000000000000axpla --chain-id=<network-name> xplad collect-gentxs
Reset Personal Data
You may be unable to use your node and its associated accounts after changing your personal data. Do not perform this action unless your node is disposable.
To change your personal data to a pristine state, delete both
A healthy node will have the following files in place and populated:
- Genesis file
- Validator state
- Node key
You can proceed to resync manually.