Skip to content

Commit b27d5b2

Browse files
Mention stopping validation in resync docs
1 parent e060847 commit b27d5b2

File tree

1 file changed

+18
-7
lines changed
  • blockchain/for-validators-nominators-and-stakers

1 file changed

+18
-7
lines changed

blockchain/for-validators-nominators-and-stakers/resync.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Resyncing node
22

33
To resync your Liberland Node, you need to:
4-
1. stop the node
5-
2. remove the directory containing Liberland Node Database (`chains/mainnet/db`)
6-
3. restart the node
7-
4. wait until it resyncs
4+
1. If you're a validator and the chain is live and not stalled:
5+
1. Stop validating using [Liberland dApp](https://blockchain.liberland.org/) or [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss://mainnet.liberland.org#/legacy-staking/actions)
6+
2. Make sure your node is not in [the active validator set](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fmainnet.liberland.org#/legacy-staking)
7+
2. stop the node
8+
3. remove the directory containing Liberland Node Database (`chains/mainnet/db`)
9+
4. restart the node
10+
5. wait until it resyncs
811

912
Node data directory structure is as follows:
1013

@@ -26,7 +29,11 @@ For a detailed guide, please choose the proper instruction according to the meth
2629

2730
# Automated script installs
2831

29-
Run the following commands on your server:
32+
If your node is a validator and the chain is live and not stalled:
33+
1. Stop validating using [Liberland dApp](https://blockchain.liberland.org/) or [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss://mainnet.liberland.org#/legacy-staking/actions)
34+
2. Make sure your node is not in [the active validator set](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fmainnet.liberland.org#/legacy-staking)
35+
36+
When your node is no longer a validator, or the chain is currently stalled, run the following commands on your server:
3037

3138
```
3239
systemctl stop liberland-validator
@@ -36,12 +43,16 @@ systemctl start liberland-validator
3643

3744
# Docker installs
3845

39-
If you followed the [Complete example of running a validator on mainnet](../dev/docker.md) guide, run these commands:
46+
If your node is a validator and the chain is live and not stalled:
47+
1. Stop validating using [Liberland dApp](https://blockchain.liberland.org/) or [Polkadot.js Apps](https://polkadot.js.org/apps/?rpc=wss://mainnet.liberland.org#/legacy-staking/actions)
48+
2. Make sure your node is not in [the active validator set](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fmainnet.liberland.org#/legacy-staking)
49+
50+
When your node is no longer a validator, or the chain is currently stalled, run the following commands on your server:
4051

4152
```
4253
docker stop liberland
4354
rm -rf $HOME/liberland_data/chains/mainnet/db
4455
docker start liberland
4556
```
4657

47-
If you run it in a custom way, adjust the container name and DB path accordingly.
58+
If you run it in a custom way, and not with the [Complete example of running a validator on mainnet](../dev/docker.md) guide, adjust the container name and DB path accordingly.

0 commit comments

Comments
 (0)