From 8c58a0beae202ef0c1e041b7d9451b243afd87cf Mon Sep 17 00:00:00 2001 From: n3wbie Date: Tue, 25 Jun 2024 13:49:17 +0900 Subject: [PATCH] docs: add info block for overwriting secrets --- .../start-a-new-gno-chain-and-validator.md | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/gno-infrastructure/validators/start-a-new-gno-chain-and-validator.md b/docs/gno-infrastructure/validators/start-a-new-gno-chain-and-validator.md index 582244c8d93..362f80a35b6 100644 --- a/docs/gno-infrastructure/validators/start-a-new-gno-chain-and-validator.md +++ b/docs/gno-infrastructure/validators/start-a-new-gno-chain-and-validator.md @@ -57,6 +57,12 @@ The key file path is relative by default. gnoland config set priv_validator_key_file secrets/priv_validator_key.json -config-path gnoland-data/config/config.toml ``` +::: + +info validator private key is one of secrets that centeralized within `/secrets`, it can be replaced or regenerated with `gnoland secrets init ValidatorPrivateKey --force` + +::: + ## 5. Set the validator state (optional) - Set path of the validator state. A default value exists. When using a separate secrets folder, you must set the path to the respective location. @@ -71,9 +77,15 @@ The key file path is relative by default. gnoland config set priv_validator_state_file secrets/priv_validator_state.json -config-path gnoland-data/config/config.toml ``` -## 6. Set the node key (optional) +::: + +info validator state is one of secrets that centeralized within `/secrets`, it can be replaced or regenerated with `gnoland secrets init ValidatorState --force` -- Set path of the node key. A default path exists. When using a separate secrets folder, you must set the path to the respective location. +::: + +## 6. Set the node id (optional) + +- Set path of the node id. A default path exists. When using a separate secrets folder, you must set the path to the respective location. :::tip @@ -85,6 +97,12 @@ The key file path is relative by default. gnoland config set node_key_file secrets/node_key.json -config-path gnoland-data/config/config.toml ``` +:::info + +node is is one of secrets that centeralized within `/secrets`, it can be replaced or regenerated with `gnoland secrets init NodeID --force` + +::: + ## 7. Generate the genesis file (required) - When the chain starts, the first block will be produced after all of the content inside the genesis file is executed. @@ -117,7 +135,7 @@ $ gnoland genesis validator add \ -address g1lnha5yem9dmj0yfzysfqsnvrm6j2ywshq83qdf \ # address of validator -name node01 \ # name of validator -power 10 \ # voting power of validator - -pub-key pub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpleysamt23ar025757uepld60xztnw7ujc3gwtjuy4pwv6z9sh4g284h3q # public key of validator + -pub-key gpub1pggj7ard9eg82cjtv4u52epjx56nzwgjyg9zpleysamt23ar025757uepld60xztnw7ujc3gwtjuy4pwv6z9sh4g284h3q # public key of validator ``` ## 9. Start the chain