Skip to content

Commit

Permalink
Update cascadia_11029-1
Browse files Browse the repository at this point in the history
  • Loading branch information
defrisk0 authored Dec 5, 2023
1 parent b4d8944 commit bbb6a57
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions CASCADIA/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# CASCADIA

[RPC](http://cascadia.srgts.xyz:21457) | [API](http://cascadia.srgts.xyz:1417) | [gRPC](http://cascadia.srgts.xyz:9491)

Let's update and install the necessary packages:
````
sudo apt update && sudo apt upgrade -y
Expand All @@ -22,25 +20,25 @@ Install CLI:
````
git clone https://github.com/cascadiafoundation/cascadia
cd ~/cascadia
git checkout v0.1.6
git checkout v0.1.9-1
make install
````
Let's check the version (current as of October 2023 - v0.1.6 commit: 06ad7b0222b3d7795c25173231fb8b90ad79cdbf):
Let's check the version (current as of December 2023 - v0.1.9-1 commit: 1ff47d96d12d272fbb2330e601a6a0642b8d9f16):
````
cascadiad version --long
````
Set the correct chain (cascadia_6102-1), chooses his moniker and initialize node:
Set the correct chain (cascadia_11029-1), chooses his moniker and initialize node:
````
cd $HOME
MNK=testnet
cascadiad config chain-id cascadia_6102-1
cascadiad init $MNK --chain-id cascadia_6102-1
MNK=CSD_NODE
cascadiad config chain-id cascadia_11029-1
cascadiad init $MNK --chain-id cascadia_11029-1
````
Download the current genesis file:
````
curl -L https://anode.team/Cascadia/test/genesis.json > $HOME/.cascadiad/config/genesis.json
curl https://rpc.cascadia.foundation/genesis | jq '.result.genesis' > ~/.cascadiad/config/genesis.json
````
Let's check sum genesis file (current as of October 2023 - 74ea3c84182028300d0c101c5cf017a055782c595ed91e4be3638380f0169582):
Let's check sum genesis file (current as of December 2023 - 704386b37748baf8c6a0e1ae2f16806fb24d165e69caabc95dfde6fdee0d5a9e):
````
sha256sum $HOME/.cascadiad/config/genesis.json
````
Expand All @@ -51,13 +49,9 @@ sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.01aCC"|g' $HOME/.casc
Adding seeds and peers:
````
seeds=""
peers="[email protected]:49656,[email protected]:17856,[email protected]:34656,[email protected]:26656,[email protected]:15656,[email protected]:26656,[email protected]:35656,[email protected]:17096,[email protected]:38656,[email protected]:26656"
peers="[email protected]:26656,[email protected]:26656"
sed -i -e 's|^seeds *=.*|seeds = "'$seeds'"|; s|^persistent_peers *=.*|persistent_peers = "'$peers'"|' $HOME/.cascadiad/config/config.toml
````
Add addrbook:
````
curl -s https://raw.githubusercontent.com/defrisk0/srg0z10/main/CASCADIA/addrbook.json > $HOME/.cascadiad/config/addrbook.json
````
Edit pruning parameter:
````
sed -i 's|pruning = "default"|pruning = "custom"|g' $HOME/.cascadiad/config/app.toml
Expand All @@ -73,7 +67,7 @@ Description=CASCADIA NODE
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cascadiad) start --chain-id cascadia_6102-1
ExecStart=$(which cascadiad) start --chain-id cascadia_11029-1
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Expand All @@ -100,7 +94,7 @@ State Sync:
sudo systemctl stop cascadiad
cp $HOME/.cascadiad/data/priv_validator_state.json $HOME/.cascadiad/priv_validator_state.json.backup
cascadiad tendermint unsafe-reset-all --home $HOME/.cascadiad --keep-addr-book
SNAP_RPC="http://cascadia.srgts.xyz:21457"
SNAP_RPC=https://rpc.cascadia.foundation:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
Expand Down

0 comments on commit bbb6a57

Please sign in to comment.