From 5a6befcf0d9cd6ecd576efff76a34e6d5b279150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Martini=C4=87?= Date: Tue, 16 Aug 2022 15:34:00 +0200 Subject: [PATCH] Update README.md (#407) --- README.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4f128532..2743e1f4 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,28 @@ wget -O - https://github.com/palomachain/paloma/releases/download/v0.6.1/paloma_ service palomad start ``` +### Upgrading from `paloma-testnet-6` to `paloma-testnet-7` +1. Stop your paloma version and get 0.6.1 +``` +service palomad stop +wget -O - https://github.com/palomachain/paloma/releases/download/v0.6.1/paloma_Linux_x86_64.tar.gz | \ + tar -C /usr/local/bin -xvzf - palomad +``` + +2. Reset your local chain state: +```bash +palomad tendermint unsafe-reset-all --home $HOME/.paloma +``` + +3. Copy the latest genesis and addrbook +```shell +wget -O ~/.paloma/config/genesis.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-7/genesis.json +wget -O ~/.paloma/config/addrbook.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-7/addrbook.json +``` + +4. Ensure that the [latest pigeon](https://github.com/palomachain/pigeon#install) is up & running and that you have at least 0.01 ETH on eth mainnet target chain. Make sure to change the `chain-id: paloma-testnet-6` to `chain-id: paloma-testnet-7` in your pigeon config yaml file ([example](https://github.com/palomachain/pigeon/pull/51/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R85)). + +5. Start the palomad ### Connecting to an existing testnet. @@ -81,8 +103,8 @@ palomad init "$MONIKER" Copy the configs of the testnet we wish to connect to ```shell -wget -O ~/.paloma/config/genesis.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-6/genesis.json -wget -O ~/.paloma/config/addrbook.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-6/addrbook.json +wget -O ~/.paloma/config/genesis.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-7/genesis.json +wget -O ~/.paloma/config/addrbook.json https://raw.githubusercontent.com/palomachain/testnet/master/paloma-testnet-7/addrbook.json ``` Next you can generate a new set of keys to the new machine, or reuse an existing key. @@ -120,7 +142,7 @@ palomad tx staking create-validator \ --moniker="$MONIKER" \ --website="https://www.example.com" \ --details="" \ - --chain-id=paloma-testnet-6 \ + --chain-id=paloma-testnet-7 \ --commission-rate="0.1" \ --commission-max-rate="0.2" \ --commission-max-change-rate="0.05" \ @@ -190,7 +212,7 @@ apt install jq Set up the chain validator. ```shell -CHAIN_ID=paloma-testnet-6 \ +CHAIN_ID=paloma-testnet-7 \ MNEMONIC="$(cat secret.mn)" \ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/palomachain/paloma/master/scripts/setup-volume-testnet.sh)" ```