Use a variable for node moniker
This commit is contained in:
parent
2830ca81b5
commit
2691274351
@ -14,7 +14,12 @@ Instructions for running a laconicd testnet full node and joining as a validator
|
|||||||
|
|
||||||
* Testnet genesis file and peer node address
|
* Testnet genesis file and peer node address
|
||||||
|
|
||||||
* Get the mnemonic on creating the wallet <https://wallet.laconic.com/>
|
* Mnemonic from the [wallet](https://wallet.laconic.com)
|
||||||
|
|
||||||
|
### Participant Onboarded
|
||||||
|
|
||||||
|
* Visit <https://wallet.laconic.com/> and click on `Create wallet`
|
||||||
|
* Save the mnemonic for further usage
|
||||||
|
|
||||||
* Register your laconic address as a participant using the [Onboarding App](https://loro-signup.laconic.com/)
|
* Register your laconic address as a participant using the [Onboarding App](https://loro-signup.laconic.com/)
|
||||||
|
|
||||||
@ -149,15 +154,17 @@ laconic-so deployment --dir testnet-laconicd-deployment start
|
|||||||
|
|
||||||
## Join as testnet validator
|
## Join as testnet validator
|
||||||
|
|
||||||
* Create / import a new key pair:
|
* Import a key pair:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
KEY_NAME=alice
|
||||||
|
|
||||||
# Restore existing key with mnemonic seed phrase
|
# Restore existing key with mnemonic seed phrase
|
||||||
# You will be prompted to enter mnemonic seed
|
# You will be prompted to enter mnemonic seed
|
||||||
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys add <key-name> --recover"
|
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys add $KEY_NAME --recover"
|
||||||
|
|
||||||
# Query the keystore for your account's address
|
# Query the keystore for your account's address
|
||||||
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys show <key-name> -a"
|
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd "laconicd keys show $KEY_NAME -a"
|
||||||
```
|
```
|
||||||
|
|
||||||
* Check balance for your account:
|
* Check balance for your account:
|
||||||
@ -169,14 +176,14 @@ laconic-so deployment --dir testnet-laconicd-deployment start
|
|||||||
* Create required validator configuration:
|
* Create required validator configuration:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Note:
|
# Replace <your-node-moniker> with your node's moniker
|
||||||
# Replace <your-node-moniker> with your node's moniker in command below
|
NODE_MONIKER=<your-node-moniker>
|
||||||
|
|
||||||
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat <<EOF > <your-node-moniker>-validator.json
|
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'cat <<EOF > $NODE_MONIKER-validator.json
|
||||||
{
|
{
|
||||||
"pubkey": $(laconicd cometbft show-validator),
|
"pubkey": $(laconicd cometbft show-validator),
|
||||||
"amount": "1000000000000000alnt",
|
"amount": "1000000000000000alnt",
|
||||||
"moniker": "<your-node-moniker>",
|
"moniker": "$NODE_MONIKER",
|
||||||
"commission-rate": "0.1",
|
"commission-rate": "0.1",
|
||||||
"commission-max-rate": "0.2",
|
"commission-max-rate": "0.2",
|
||||||
"commission-max-change-rate": "0.01",
|
"commission-max-change-rate": "0.01",
|
||||||
@ -188,10 +195,10 @@ laconic-so deployment --dir testnet-laconicd-deployment start
|
|||||||
* Create a validator:
|
* Create a validator:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd tx staking create-validator <your-node-moniker>-validator.json \
|
laconic-so deployment --dir testnet-laconicd-deployment exec laconicd 'laconicd tx staking create-validator $NODE_MONIKER-validator.json \
|
||||||
--fees 500000alnt \
|
--fees 500000alnt \
|
||||||
--chain-id=laconic_9000-1 \
|
--chain-id=laconic_9000-1 \
|
||||||
--from <key-name>'
|
--from $KEY_NAME'
|
||||||
```
|
```
|
||||||
|
|
||||||
* View staking validators:
|
* View staking validators:
|
||||||
|
Loading…
Reference in New Issue
Block a user