https://source-mainnet-rpc.nodesrun.xyz
https://source-mainnet-api.nodesrun.xyz
https://source-mainnet-grpc.nodesrun.xyz
https://source-mainnet-jsonrpc.nodesrun.xyz
sudo systemctl stop sourced
cp $HOME/.source/data/priv_validator_state.json $HOME/.source/priv_validator_state.json.backup
sourced tendermint unsafe-reset-all --home $HOME/.source
peers="a47f3b354e75478c0dfe22ad2b937ad07c9bcf3c@source-testnet-peer.itrocket.net:24656,e127f3f7277b76887423458d8f775e33f58ff80a@65.109.65.248:28656,c491f30afac53c66ce5ed8650591e5275fd4b42b@75.119.132.25:34656,854048fcfb453297742b76cc5c6b7555eeb25110@213.239.207.175:31656,c5eccf228a25f979592297311bfe2cc8ef94e482@95.111.229.159:26656,8145d4d13511e7f89dbd257f51ed5d076941f12f@164.92.98.12:26656,0e03201599c8b4314b66c90639b0d776e6691ba2@164.92.98.17:26656,330b14f94d3bbe6c4059f31bd8fbf9960cf1387e@185.144.99.3:26656,1107d5a5e05113d7fd4520ad0756685da387f0e8@212.23.222.220:26356,636c7206a1a9a817768766a1f243d27398159028@144.76.97.251:36656"
SNAP_RPC="https://source-testnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.source/config/config.toml
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height);
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000));
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH && sleep 2
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ;
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ;
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ;
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ;
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.source/config/config.toml
mv $HOME/.source/priv_validator_state.json.backup $HOME/.source/data/priv_validator_state.json
sudo systemctl restart sourced && sudo journalctl -u sourced -f
sudo systemctl stop sourced
cp $HOME/.source/data/priv_validator_state.json $HOME/.source/priv_validator_state.json.backup
rm -rf $HOME/.source/data
curl https://source-mainnet-snapshot.nodesrun.xyz/source_snapshot.tar.lz4 | lz4 -dc – | tar -xf – -C $HOME/.source
mv $HOME/.source/priv_validator_state.json.backup $HOME/.source/data/priv_validator_state.json
sudo systemctl restart sourced && sudo journalctl -u sourced -f
a47f3b354e75478c0dfe22ad2b937ad07c9bcf3c@source-testnet-peer.itrocket.net:24656
eca738b67fd23381f9a72717bea757c1d291ed2b@source-testnet-seed.itrocket.net:24656
PEERS="a47f3b354e75478c0dfe22ad2b937ad07c9bcf3c@source-testnet-peer.itrocket.net:24656,e127f3f7277b76887423458d8f775e33f58ff80a@65.109.65.248:28656,c491f30afac53c66ce5ed8650591e5275fd4b42b@75.119.132.25:34656,854048fcfb453297742b76cc5c6b7555eeb25110@213.239.207.175:31656,c5eccf228a25f979592297311bfe2cc8ef94e482@95.111.229.159:26656,8145d4d13511e7f89dbd257f51ed5d076941f12f@164.92.98.12:26656,0e03201599c8b4314b66c90639b0d776e6691ba2@164.92.98.17:26656,330b14f94d3bbe6c4059f31bd8fbf9960cf1387e@185.144.99.3:26656,1107d5a5e05113d7fd4520ad0756685da387f0e8@212.23.222.220:26356,636c7206a1a9a817768766a1f243d27398159028@144.76.97.251:36656"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.source/config/config.toml
wget -O $HOME/.source/config/addrbook.json https://testnet-files.itrocket.net/source/addrbook.json
Sign in to your account