From c43c58e2f5ffafcc0ad0e5e407b57ae1e851705f Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 14 Mar 2023 11:54:00 +0530 Subject: [PATCH] fix markdown lint --- testnet/full_node.md | 4 ++-- testnet/genesis-validators.md | 19 +++++++++++++++---- testnet/validator upgrade 0.6.0 - 0.7.0.md | 12 +++++++++--- x/auction/README.md | 9 +++++++++ x/registry/README.md | 6 +++--- 5 files changed, 38 insertions(+), 12 deletions(-) diff --git a/testnet/full_node.md b/testnet/full_node.md index ea6670a5..89ab98e7 100644 --- a/testnet/full_node.md +++ b/testnet/full_node.md @@ -74,7 +74,7 @@ make install laconicd version --long ``` -On running the above command, you should see a similar response like this. Make sure that the _version_ and _commit +On running the above command, you should see a similar response like this. Make sure that the *version* and commit hash_ are accurate ``` @@ -102,7 +102,7 @@ NOTE: Backup node and validator keys . You will need to use these keys at a late ## 1) Download Final Genesis Use `curl` to download the genesis file -**Replace your **genesis** file with published genesis file** +**Replace your**genesis**file with published genesis file** ```shell # Will be updated diff --git a/testnet/genesis-validators.md b/testnet/genesis-validators.md index 16be7c62..897004e6 100644 --- a/testnet/genesis-validators.md +++ b/testnet/genesis-validators.md @@ -24,11 +24,14 @@ # Blockchain client Setup There are two options of running a laconicd + 1. As a systemd service 2. In a docker container ## Systemd service + Skip this section if you use docker + ### Install required software packages ```sh @@ -93,7 +96,7 @@ laconicd version --long ``` -On running the above command, you should see a similar response like this. Make sure that the _version_ and _commit +On running the above command, you should see a similar response like this. Make sure that the *version* and commit hash_ are accurate ```sh @@ -121,10 +124,12 @@ Make sure the directory `~/.laconicd` does not exist or is empty --- >**Docker**
>In order to run the below commands in a docker container: +> >```sh >docker run -ti -v ~/.laconicd:/root/.laconicd \ >git.vdb.to/cerc-io/laconicd/laconicd:v0.8.0 /bin/sh >``` +> --- ```sh @@ -218,9 +223,11 @@ moniker="" # Update seeds, persistent_peers and prometheus parameters in config.toml sed -i.bak -e "s/^seeds *=.*/seeds = \"$seeds\"/; s/^persistent_peers *=.*/persistent_peers = \"$peers\"/; s/^prometheus *=.*/prometheus = true/; s/^moniker *=.*/moniker = \"$moniker\"/; s/^external_address *=.*/external_address = \"tcp:\/\/$external_address:26656\"/" $HOME/.laconicd/config/config.toml ``` + --- ## Create systemd validator service (skip for Docker) + ```sh sudo tee /etc/systemd/system/laconicd.service > /dev/null <***You have ~10 minutes after step 5 to complete steps 6 and 7 before your validator is jailed for downtime. Getting jailed for downtime is not a disaster, however would require manual unjailing.*** - - ### Install Go 1.19 ```sh @@ -62,6 +62,7 @@ rm -rf laconicd --- ### Download `laconicd` repository + ```sh git clone https://github.com/cerc-io/laconicd.git cd laconicd @@ -107,6 +108,7 @@ Verify your installation ```sh laconicd version ``` + This should return `0.7.0` --- @@ -123,12 +125,12 @@ Verify that the node joined the network and produces new blocks journalctl -f -u laconicd ``` - --- ## Docker container Upgrade plan: + 1. Stop running v0.6.0 container 2. Delete v0.6.0 container 3. Create v0.7.0 container @@ -137,6 +139,7 @@ Upgrade plan: >***You have ~10 minutes to complete the upgrade procedure before your validator is jailed for downtime. Getting jailed for downtime is not a disaster, however would require manual unjailing.*** ### Stop running v0.6.0 container + ```sh docker stop laconic-testnet-5 ``` @@ -144,6 +147,7 @@ docker stop laconic-testnet-5 --- ### Delete v0.6.0 container + ```sh docker rm laconic-testnet-5 ``` @@ -151,6 +155,7 @@ docker rm laconic-testnet-5 --- ### Create v0.7.0 container + ```sh docker create --name laconic-testnet-5 \ --restart always \ @@ -165,6 +170,7 @@ laconicd start --gql-playground --gql-server --log_level=warn --- ### Start v0.7.0 container + ```sh docker start laconic-testnet-5 ``` diff --git a/x/auction/README.md b/x/auction/README.md index f2778c10..3f3cbd9d 100644 --- a/x/auction/README.md +++ b/x/auction/README.md @@ -14,23 +14,32 @@ make build The following steps need to be followed only before running the chain for the first time. 1. Add the root key: + ``` ./build/laconicd keys add root ``` + Keep a note of the keyring passphrase if you set it. 2. Init the chain: + ``` ./build/laconicd init test-moniker --chain-id laconic_9000-1 ``` + 3. Add genesis account: + ``` ./build/laconicd add-genesis-account $(./build/laconicd keys show root -a) 1000000000000000000aphoton,1000000000000000000stake ``` + 4. Make a genesis tx: + ``` ./build/laconicd gentx root 1000000000000000000stake --chain-id laconic_9000-1 ``` + 5. Collect gentxs: + ``` ./build/laconicd collect-gentxs ``` diff --git a/x/registry/README.md b/x/registry/README.md index e8c44e0a..ca13ae0e 100644 --- a/x/registry/README.md +++ b/x/registry/README.md @@ -181,8 +181,8 @@ $ ./build/laconicd q registry balance -o json | jq . ## add bond to the authority ```bash -$ ./build/laconicd tx registry authority-bond [Authority Name] [Bond ID ] --from root --chain-id laconic_9000-1 -y -o json | jq . -$ ./build/laconicd tx registry authority-bond hello 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id laconic_9000-1 -y -o json | jq . +./build/laconicd tx registry authority-bond [Authority Name] [Bond ID ] --from root --chain-id laconic_9000-1 -y -o json | jq . +./build/laconicd tx registry authority-bond hello 95f68b1b862bfd1609b0c9aaf7300287b92fec90ac64027092c3e723af36e83d --from root --chain-id laconic_9000-1 -y -o json | jq . ``` ## Query the records by associate bond id @@ -274,7 +274,7 @@ $./build/laconicd tx registry dissociate-records c3f7a78c5042d2003880962ba31ff3b > When a record is expires , needs to renew record ```bash -$ ./build/laconicd tx registry renew-record bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id laconic_9000-1 +./build/laconicd tx registry renew-record bafyreih7un2ntk235wshncebus5emlozdhdixrrv675my5umb6fgdergae --from root --chain-id laconic_9000-1 ```