-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from notional-labs/mgl2150-patch-6
Update sei.sh
- Loading branch information
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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 |