Skip to content

Commit

Permalink
Update sei.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mgl2150 authored Jul 19, 2023
1 parent c3a7234 commit db5ad5e
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions infrastructure/statesync/sei.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,15 @@ export GOPATH=~/go
export PATH=$PATH:~/go/bin

# MAKE HOME FOLDER AND GET GENESIS
seid init test
wget -O ~/.sei/config/genesis.json https://raw.githubusercontent.com/sei-protocol/testnet/main/sei-incentivized-testnet/genesis.json

INTERVAL=1000

# GET TRUST HASH AND TRUST HEIGHT

LATEST_HEIGHT=$(curl -s https://rpc-sei-test.ecostake.com:443/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$(($LATEST_HEIGHT-$INTERVAL))
TRUST_HASH=$(curl -s "https://rpc-sei-test.ecostake.com:443/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
INTERVAL=1000

# GET TRUST HASH AND TRUST HEIGHT

LATEST_HEIGHT=$(curl -s https://rpc-sei-test.ecostake.com:443/block | jq -r .result.block.header.height);
LATEST_HEIGHT=$(curl -s http://statesync-sei.rhinostake.com:11957/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$(($LATEST_HEIGHT-$INTERVAL))
TRUST_HASH=$(curl -s "https://rpc-sei-test.ecostake.com:443/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

TRUST_HASH=$(curl -s "http://statesync-sei.rhinostake.com:11957/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

# TELL USER WHAT WE ARE DOING
echo "TRUST HEIGHT: $BLOCK_HEIGHT"
Expand All @@ -32,9 +24,9 @@ echo "TRUST HASH: $TRUST_HASH"
# export state sync vars
export SEID_STATESYNC_ENABLE=true
export SEID_P2P_MAX_NUM_OUTBOUND_PEERS=200
export SEID_STATESYNC_RPC_SERVERS="https://rpc-sei-test.ecostake.com:443,https://rpc-sei-test.ecostake.com:443"
export SEID_STATESYNC_RPC_SERVERS="http://statesync-sei.rhinostake.com:11957,http://statesync-sei.rhinostake.com:11957"
export SEID_STATESYNC_TRUST_HEIGHT=$BLOCK_HEIGHT
export SEID_STATESYNC_TRUST_HASH=$TRUST_HASH
export SEID_P2P_SEEDS="[email protected].rhinostake.com:16660"
export SEID_P2P_SEEDS="42f5eaf8e43b17c2e5c72c3ba8c0aea9e3e114fb@statesync-sei.rhinostake.com:11956"

seid start --x-crisis-skip-assert-invariants --p2p.laddr tcp://0.0.0.0:2420 --rpc.laddr tcp://127.0.0.1:2421 --grpc.address 127.0.0.1:2422 --grpc-web.address 127.0.0.1:2423 --p2p.persistent_peers [email protected]:12656,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:51656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:30656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:29656,[email protected]:12656,[email protected]:60756,[email protected]:26656,[email protected]:46656,[email protected]:12656,[email protected]:23656,[email protected]:26656,[email protected]:26666,[email protected]:26656,[email protected]:20956,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:8095,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:10956,[email protected]:26656,[email protected]:12656,[email protected]:20656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:11301,[email protected]:12656,[email protected]:12656,[email protected]:10656,[email protected]:26666,[email protected]:10656,[email protected]:26656,[email protected]:26651,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:3030,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:16656,[email protected]:26656,[email protected]:20956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26858,[email protected]:11104,[email protected]:27656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:27656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:10656,[email protected]:26656,[email protected]:27656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:12656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12656,[email protected]:26656,[email protected]:12656,[email protected]:12656,[email protected]:12656,[email protected]:12656
seid start --x-crisis-skip-assert-invariants --p2p.laddr tcp://0.0.0.0:2420 --rpc.laddr tcp://127.0.0.1:2421 --grpc.address 127.0.0.1:2422 --grpc-web.address 127.0.0.1:2423

0 comments on commit db5ad5e

Please sign in to comment.