From 92e1899d92b8d64c87969daeed5a2b72f563fb23 Mon Sep 17 00:00:00 2001 From: Raul Bernal Date: Wed, 11 Aug 2021 11:55:59 +0200 Subject: [PATCH] Update statesync_client.sh --- statesync_client.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/statesync_client.sh b/statesync_client.sh index 2cc0c98..c1d780d 100644 --- a/statesync_client.sh +++ b/statesync_client.sh @@ -1,17 +1,17 @@ #!/bin/bash set -e # Based on the work of Joe (Chorus-One) for Microtick - https://github.com/microtick/bounties/tree/main/statesync -read -p "BCNA folder, your keys and config will be erased, proced? " -n 1 -r +read -p "BCNA folder, your keys and config will be erased, proced (y/n)? " -n 1 -r if [[ $REPLY =~ ^[Yy]$ ]] then # BitCanna State Sync client config. rm -f bcnad #deletes a previous downloaded binary - rm -rf $HOME/./bcnad/ #deletes previous installation + rm -rf $HOME/.bcnad/ #deletes previous installation wget -nc https://github.com/BitCannaGlobal/bcna/releases/download/v0.2-beta/bcnad chmod +x bcnad ./bcnad init New_peer --chain-id bitcanna-testnet-6 - wget -nc https://raw.githubusercontent.com/BitCannaGlobal/testnet-bcna-cosmos/main/instructions/public-testnet/genesis.json - mv genesis.json $HOME/.bcna/config/ + rm -rf $HOME/./bcnad/config/genesis.json #deletes the default created genesis + wget https://raw.githubusercontent.com/BitCannaGlobal/testnet-bcna-cosmos/main/instructions/public-testnet/genesis.json > $HOME/.bcna/config/genesis.json # At this moment: config state sync & launch the syncing (all previous config need to be performed)