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: docs/run-node/4-register-validator.mdx
+39-9Lines changed: 39 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,16 +108,50 @@ Only provide values which differ from the defaults to avoid issues with future u
108
108
}
109
109
```
110
110
111
+
## Backup and restore
112
+
113
+
:::danger[Backup your staking keys]
114
+
It's imperative that prior to staking your node, you backup all three files that identify your node.
115
+
These files will be generated when the node is started for the first time.
116
+
117
+
-`staker.key` and `staker.crt` - Make up your NodeID
118
+
-`signer.key` - Defines your node's proof of possession (NodePOP). It generates the BLS key and BLS signature required for staking.
119
+
120
+
If these staking keys are lost due to host migrations or disaster scenarios, you will no longer be able to run the node as it's previous identity.
121
+
This poses a risk of staked funds being locked against the unrecoverable NodeID until expiry of that stake, resulting in a loss of rewards and negatively impacting the network.
122
+
123
+
:::
124
+
125
+
<TabsgroupId="network"block>
126
+
127
+
<TabItemvalue="source"label="From Source"default>
128
+
129
+
To backup the staking keys ensure you complete [Step 3](/run-node/from-source#run-the-node) of copying your staking keys to a persistent directory outside the default location.
To backup the staking keys ensure you complete [Step 5](/run-node/using-docker#using-docker-compose) of copying your staking keys to a persistent directory outside the default location.
To backup the staking keys ensure you complete [Step 4](/run-node/using-docker#using-docker-cli) of copying your staking keys to a persistent directory outside the default location.
142
+
143
+
</TabItem>
144
+
145
+
</Tabs>
146
+
111
147
## Run the node
112
148
113
149
Now, start your node using command-line flags or environment variables that point to your `staker.key`, `staker.crt` and `signer.key` files.
114
150
This ensures your node always starts with the correct `Node-ID`.
115
151
116
152
### From source
117
153
118
-
1. Ensure you completed the optional [Step 3](/run-node/from-source#run-the-node) of copying your staking keys to a persistent directory outside the default location.
119
-
120
-
2. Add the following flags to your [startup command](/run-node/from-source#run-the-node).
154
+
1. Add the following flags to your [startup command](/run-node/from-source#run-the-node).
121
155
For example, if you copied your keys to `/opt/flare/staking/`, your command would look like:
122
156
123
157
```bash
@@ -136,9 +170,7 @@ This ensures your node always starts with the correct `Node-ID`.
136
170
137
171
### Using Docker CLI
138
172
139
-
1. Ensure you completed the optional [Step 4](/run-node/using-docker#using-docker-cli) of copying your staking keys to a persistent directory outside the default location.
140
-
141
-
2. Modify your [`docker run`](/run-node/using-docker#using-docker-cli) command to mount the directory containing your keys into the container and set the environment variables to point to the mounted files.
173
+
1. Modify your [`docker run`](/run-node/using-docker#using-docker-cli) command to mount the directory containing your keys into the container and set the environment variables to point to the mounted files.
142
174
For example, if you copied your keys to `/opt/flare/staking/`, your command would look like:
143
175
144
176
```bash
@@ -165,9 +197,7 @@ This ensures your node always starts with the correct `Node-ID`.
165
197
166
198
### Using Docker Compose
167
199
168
-
1. Ensure you completed the optional [Step 5](/run-node/using-docker#using-docker-compose) of copying your staking keys to a persistent directory outside the default location.
169
-
170
-
2. Modify your [`docker-compose.yaml`](/run-node/using-docker#using-docker-compose) file to include the staking key volume and environment variables.
200
+
1. Modify your [`docker-compose.yaml`](/run-node/using-docker#using-docker-compose) file to include the staking key volume and environment variables.
171
201
For example, if you copied your keys to `/opt/flare/staking/`, your `docker-compose.yaml` would look like:
0 commit comments