Skip to content

Commit 2c74420

Browse files
authored
fix(infra): v1.11.0 updates to node running docs (#798)
2 parents 6beafed + 855540c commit 2c74420

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

docs/run-node/2-from-source.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ Make sure to check the [hardware requirements](/run-node/system-requirements) be
132132
# Create a dedicated directory
133133
sudo mkdir -p /opt/flare/staking
134134
# Move your keys
135-
sudo mv ~/.avalanchego/staking/staker.key /opt/flare/staking/
136-
sudo mv ~/.avalanchego/staking/staker.crt /opt/flare/staking/
135+
sudo cp -r ~/.avalanchego/staking/* /opt/flare/staking/
137136
```
138137

139138
</TabItem>
@@ -144,8 +143,7 @@ Make sure to check the [hardware requirements](/run-node/system-requirements) be
144143
# Create a dedicated directory
145144
sudo mkdir -p /opt/coston2/staking
146145
# Move your keys
147-
sudo mv ~/.avalanchego/staking/staker.key /opt/coston2/staking/
148-
sudo mv ~/.avalanchego/staking/staker.crt /opt/coston2/staking/
146+
sudo cp -r ~/.avalanchego/staking/* /opt/coston2/staking
149147
```
150148

151149
</TabItem>
@@ -156,8 +154,7 @@ Make sure to check the [hardware requirements](/run-node/system-requirements) be
156154
# Create a dedicated directory
157155
sudo mkdir -p /opt/songbird/staking
158156
# Move your keys
159-
sudo mv ~/.avalanchego/staking/staker.key /opt/songbird/staking/
160-
sudo mv ~/.avalanchego/staking/staker.crt /opt/songbird/staking/
157+
sudo cp -r ~/.avalanchego/staking/* /opt/songbird/staking
161158
```
162159

163160
</TabItem>
@@ -168,8 +165,7 @@ Make sure to check the [hardware requirements](/run-node/system-requirements) be
168165
# Create a dedicated directory
169166
sudo mkdir -p /opt/coston/staking
170167
# Move your keys
171-
sudo mv ~/.avalanchego/staking/staker.key /opt/coston/staking/
172-
sudo mv ~/.avalanchego/staking/staker.crt /opt/coston/staking/
168+
sudo cp -r ~/.avalanchego/staking/* /opt/coston/staking
173169
```
174170

175171
</TabItem>

docs/run-node/4-register-validator.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Only provide values which differ from the defaults to avoid issues with future u
110110

111111
## Run the node
112112

113-
Now, start your node using command-line flags or environment variables that point to your `staker.key` and `staker.crt` files.
113+
Now, start your node using command-line flags or environment variables that point to your `staker.key`, `staker.crt` and `signer.key` files.
114114
This ensures your node always starts with the correct `Node-ID`.
115115

116116
### From source
@@ -124,12 +124,14 @@ This ensures your node always starts with the correct `Node-ID`.
124124
# Assumes staking keys are in the default location
125125
./build/avalanchego --network-id=flare \
126126
--http-host= \
127-
--bootstrap-ips="$(curl -sX POST --data '{"jsonrpc":"2.0", "id":1, "method":"info.getNodeIP"}' -H 'content-type:application/json;' [https://flare-bootstrap.flare.network/ext/info](https://flare-bootstrap.flare.network/ext/info) | jq -r '.result.ip')" \
128-
--bootstrap-ids="$(curl -sX POST --data '{"jsonrpc":"2.0", "id":1, "method":"info.getNodeID"}' -H 'content-type:application/json;' [https://flare-bootstrap.flare.network/ext/info](https://flare-bootstrap.flare.network/ext/info) | jq -r '.result.nodeID')" \
127+
--bootstrap-ips="$(curl -sX POST --data '{"jsonrpc":"2.0", "id":1, "method":"info.getNodeIP"}' -H 'content-type:application/json;' https://flare-bootstrap.flare.network/ext/info | jq -r '.result.ip')" \
128+
--bootstrap-ids="$(curl -sX POST --data '{"jsonrpc":"2.0", "id":1, "method":"info.getNodeID"}' -H 'content-type:application/json;' https://flare-bootstrap.flare.network/ext/info | jq -r '.result.nodeID')" \
129129
# highlight-next-line
130130
--staking-tls-cert-file="/opt/flare/staking/staker.crt" \
131131
# highlight-next-line
132-
--staking-tls-key-file="/opt/flare/staking/staker.key"
132+
--staking-tls-key-file="/opt/flare/staking/staker.key" \
133+
# highlight-next-line
134+
--staking-signer-key-file="/opt/flare/staking/signer.key"
133135
```
134136

135137
### Using Docker CLI
@@ -155,9 +157,9 @@ This ensures your node always starts with the correct `Node-ID`.
155157
-p 0.0.0.0:9651:9651 \
156158
-e NETWORK_ID="flare" \
157159
-e AUTOCONFIGURE_BOOTSTRAP="1" \
158-
-e AUTOCONFIGURE_BOOTSTRAP_ENDPOINT="[https://flare-bootstrap.flare.network/ext/info](https://flare-bootstrap.flare.network/ext/info)" \
160+
-e AUTOCONFIGURE_BOOTSTRAP_ENDPOINT="https://flare-bootstrap.flare.network/ext/info" \
159161
# highlight-next-line
160-
-e EXTRA_ARGUMENTS=--staking-tls-cert-file=/app/staking/staker.crt --staking-tls-key-file=/app/staking/staker.key \
162+
-e EXTRA_ARGUMENTS=--staking-tls-cert-file=/app/staking/staker.crt --staking-tls-key-file=/app/staking/staker.key --staking-signer-key-file=/app/staking/signer.key \
161163
flarefoundation/go-flare:${LATEST_TAG}
162164
```
163165

@@ -188,9 +190,9 @@ This ensures your node always starts with the correct `Node-ID`.
188190
environment:
189191
- NETWORK_ID=flare
190192
- AUTOCONFIGURE_BOOTSTRAP=1
191-
- AUTOCONFIGURE_BOOTSTRAP_ENDPOINT=[https://flare-bootstrap.flare.network/ext/info](https://flare-bootstrap.flare.network/ext/info)
193+
- AUTOCONFIGURE_BOOTSTRAP_ENDPOINT=https://flare-bootstrap.flare.network/ext/info
192194
# highlight-next-line
193-
- EXTRA_ARGUMENTS=--staking-tls-cert-file=/app/staking/staker.crt --staking-tls-key-file=/app/staking/staker.key
195+
- EXTRA_ARGUMENTS=--staking-tls-cert-file=/app/staking/staker.crt --staking-tls-key-file=/app/staking/staker.key --staking-signer-key-file=/app/staking/signer.key
194196
```
195197
196198
## Stake and verify
@@ -280,7 +282,7 @@ curl --data '{
280282
"method":"info.getNodeID",
281283
"id":1,
282284
"params":{}
283-
}' http://localhost:9650/ext/info | jq -r ".result.nodeID"
285+
}' -H 'content-type:application/json;' http://localhost:9650/ext/info | jq -r ".result.nodeID"
284286
```
285287

286288
Follow the instructions in the guide below to stake FLR to your `Node-ID`.

0 commit comments

Comments
 (0)