You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blockchain/for-validators-nominators-and-stakers/resync.md
+18-7
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
1
# Resyncing node
2
2
3
3
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
8
11
9
12
Node data directory structure is as follows:
10
13
@@ -26,7 +29,11 @@ For a detailed guide, please choose the proper instruction according to the meth
26
29
27
30
# Automated script installs
28
31
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:
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:
40
51
41
52
```
42
53
docker stop liberland
43
54
rm -rf $HOME/liberland_data/chains/mainnet/db
44
55
docker start liberland
45
56
```
46
57
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