Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
Update statesync_client.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulBernal authored Aug 11, 2021
1 parent 235e817 commit 92e1899
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions statesync_client.sh
Original file line number Diff line number Diff line change
@@ -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

This comment has been minimized.

Copy link
@adizere

adizere Oct 12, 2021

There is a typo on L13 I think. Remove the / in ./bcnad

- rm -rf $HOME/./bcnad/config/genesis.json #deletes the default created genesis
+ rm -rf $HOME/.bcnad/config/genesis.json #deletes the default created genesis

This comment has been minimized.

Copy link
@RaulBernal

RaulBernal via email Oct 12, 2021

Author Contributor
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)


Expand Down

0 comments on commit 92e1899

Please sign in to comment.