From 1b56cacd3a95e25a28d672f80bde1badc92d53b9 Mon Sep 17 00:00:00 2001 From: Alter <94649308+alter-22@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:06:45 +0100 Subject: [PATCH 1/2] Update and rename detailed-instructions.md to validator-setup.md --- ...led-instructions.md => validator-setup.md} | 59 +++++++++++++++++-- 1 file changed, 55 insertions(+), 4 deletions(-) rename docs/validators/{detailed-instructions.md => validator-setup.md} (77%) diff --git a/docs/validators/detailed-instructions.md b/docs/validators/validator-setup.md similarity index 77% rename from docs/validators/detailed-instructions.md rename to docs/validators/validator-setup.md index 60326d79..7b51d871 100644 --- a/docs/validators/detailed-instructions.md +++ b/docs/validators/validator-setup.md @@ -1,6 +1,6 @@ --- -title: "Running a Validator" -sidebar_label: 'Running a Validator' +title: "Validator setup" +sidebar_label: 'Setting up a new validator' sidebar_position: 3 --- @@ -107,12 +107,63 @@ libra version -### You will now need sync your validator to the latest block and register your validator. +### Run as fullnode first to sync your validator to the latest block -#### Start Node +#### Fullnode initialization +Initialize `~/.libra` config directory +``` bash +libra config init +``` + +Grab the **genesis blob** and **waypoint** (creates `fullnode.yaml`) +``` bash +libra config fullnode-init +``` +:::note +Make sure the peers listed in `~/.libra/fullnode.yaml` are active to avoid connection issues. +::: + +Set your client `libra.yaml` with the rpc-load-balancer upstream node +``` bash +libra config fix --force-url https://rpc.openlibra.space:8080/v1 +``` + +#### Start your node as fullnode +`libra node --config-path ~/.libra/fullnode.yaml` +:::note +Check sync status using `watch 'curl localhost:8080/v1/ | jq'`. +::: + + +### Switch to validator mode + +#### Validator initialization +Set up validator using the validator config tool +``` bash +libra config validator-init +``` +:::note +Make sure the peers listed in `~/.libra/validator.yaml` are active to avoid connection issues. +::: + +Following this you can see and edit your validator config file `~/.libra/operator.yaml`. +On both machines, the config in `operator.yaml` should be complete with separate Validator and VFN keys and IPs +``` yaml +validator_network_public_key: "0x_thiswasalreadyset_public_key" +validator_host: + host: + port: 6180 +full_node_network_public_key: "0x_full_node_network_public_key" +full_node_host: + host: + port: 6182 +``` + +#### Run your node in validator mode `libra node --config-path ~/.libra/validator.yaml` + ### Setup as a service(optional) From b65cdbe5a23ee5f777d18939e61a42e42a230bac Mon Sep 17 00:00:00 2001 From: Alter <94649308+alter-22@users.noreply.github.com> Date: Fri, 21 Mar 2025 21:44:55 +0100 Subject: [PATCH 2/2] Rename - back - validator-setup.md to detailed-instructions.md Fixing CI failure due to broken links --- .../validators/{validator-setup.md => detailed-instructions.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename docs/validators/{validator-setup.md => detailed-instructions.md} (99%) diff --git a/docs/validators/validator-setup.md b/docs/validators/detailed-instructions.md similarity index 99% rename from docs/validators/validator-setup.md rename to docs/validators/detailed-instructions.md index 7b51d871..5adb4e45 100644 --- a/docs/validators/validator-setup.md +++ b/docs/validators/detailed-instructions.md @@ -1,6 +1,6 @@ --- title: "Validator setup" -sidebar_label: 'Setting up a new validator' +sidebar_label: 'Setting up a validator' sidebar_position: 3 ---