Skip to content

Commit

Permalink
Update uptick to new testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
kj89 committed Oct 19, 2022
1 parent e50bffd commit 3301a8a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 297 deletions.
2 changes: 1 addition & 1 deletion uptick/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<img height="100" height="auto" src="https://user-images.githubusercontent.com/50621007/171044333-016e348d-1d96-4d00-8dce-f7de45aa9f84.png">
</p>

# uptick node setup for Testnet — uptick_7776-1
# uptick node setup for Testnet — uptick_7000-1

Official documentation:
>- [Validator setup instructions](https://docs.uptick.network/testnet/)
Expand Down
21 changes: 15 additions & 6 deletions uptick/manual_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export UPTICK_CHAIN_ID=uptick_7776-1" >> $HOME/.bash_profile
echo "export UPTICK_CHAIN_ID=uptick_7000-1" >> $HOME/.bash_profile
echo "export UPTICK_PORT=${UPTICK_PORT}" >> $HOME/.bash_profile
source $HOME/.bash_profile
```
Expand Down Expand Up @@ -67,7 +67,6 @@ fi
```
cd $HOME
git clone https://github.com/UptickNetwork/uptick.git && cd uptick
git checkout v0.2.0
make install
```

Expand All @@ -83,15 +82,25 @@ uptickd config node tcp://localhost:${UPTICK_PORT}657
uptickd init $NODENAME --chain-id $UPTICK_CHAIN_ID
```

## Download genesis and addrbook
## Restore data
```
wget -qO $HOME/.uptickd/config/genesis.json "https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/genesis.json"
cd $HOME/.uptickd
rm -rf data
wget https://download.uptick.network/download/uptick/testnet/node/data/data.tar.gz
tar -zxvf data.tar.gz
```

### Download configuration
```
curl -o $HOME/.uptickd/config/config.toml https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/config.toml
curl -o $HOME/.uptickd/config/genesis.json https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/genesis.json
curl -o $HOME/.uptickd/config/app.toml https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/app.toml
```

## Set seeds and peers
```
SEEDS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/seeds.txt | tr '\n' ',')
PEERS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/peers.txt | tr '\n' ',')
SEEDS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/seeds.txt | tr '\n' ',')
PEERS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/peers.txt | tr '\n' ',')
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.uptickd/config/config.toml
```

Expand Down
284 changes: 0 additions & 284 deletions uptick/old/README.md

This file was deleted.

18 changes: 12 additions & 6 deletions uptick/uptick.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ UPTICK_PORT=15
if [ ! $WALLET ]; then
echo "export WALLET=wallet" >> $HOME/.bash_profile
fi
echo "export UPTICK_CHAIN_ID=uptick_7776-1" >> $HOME/.bash_profile
echo "export UPTICK_CHAIN_ID=uptick_7000-1" >> $HOME/.bash_profile
echo "export UPTICK_PORT=${UPTICK_PORT}" >> $HOME/.bash_profile
source $HOME/.bash_profile

Expand Down Expand Up @@ -57,7 +57,6 @@ echo -e "\e[1m\e[32m3. Downloading and building binaries... \e[0m" && sleep 1
# download binary
cd $HOME
git clone https://github.com/UptickNetwork/uptick.git && cd uptick
git checkout v0.2.0
make install

# config
Expand All @@ -68,13 +67,20 @@ uptickd config node tcp://localhost:${UPTICK_PORT}657
# init
uptickd init $NODENAME --chain-id $UPTICK_CHAIN_ID

# download genesis and addrbook
wget -qO $HOME/.uptickd/config/genesis.json "https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/genesis.json"
# restore data
cd $HOME/.uptickd
rm -rf data
wget https://download.uptick.network/download/uptick/testnet/node/data/data.tar.gz
tar -zxvf data.tar.gz

# download configuration
curl -o $HOME/.uptickd/config/config.toml https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/config.toml
curl -o $HOME/.uptickd/config/genesis.json https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/genesis.json
curl -o $HOME/.uptickd/config/app.toml https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/app.toml

# set peers and seeds
SEEDS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/seeds.txt | tr '\n' ',')
PEERS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7776-1/peers.txt | tr '\n' ',')
SEEDS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/seeds.txt | tr '\n' ',')
PEERS=$(curl -sL https://raw.githubusercontent.com/UptickNetwork/uptick-testnet/main/uptick_7000-1/peers.txt | tr '\n' ',')
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.uptickd/config/config.toml

# set custom ports
Expand Down

0 comments on commit 3301a8a

Please sign in to comment.