https://crossfi-testnet-rpc.corenodehq.com
https://crossfi-testnet-api.corenodehq.com
https://crossfi-testnet-grpc.corenodehq.com/
https://crossfi-testnet-json.corenodehq.com
sudo systemctl stop crossfid
cp $HOME/.mineplex-chain/data/priv_validator_state.json $HOME/.mineplex-chain/priv_validator_state.json.backup
crossfid tendermint unsafe-reset-all --home $HOME/.mineplex-chain
peers="66bdf53ec0c2ceeefd9a4c29d7f7926e136f114a@crossfi-testnet-peer.itrocket.net:36656,54d39f9900e89427df4cb78c8b4e0dccc36d8485@65.109.68.69:26656,2ce3b5d3ce236afe1fe1f4024c888ea59febac4a@65.108.206.118:60556,3bf54dd549c4fc813fc5a3e88980f7ec5a96e327@135.181.221.161:26656,73746965df645665935ea6c3dcca5dfad7eabca8@109.199.116.240:26656,36cdb99f70ce1b25701ef36e4677283604df7f72@135.181.254.119:26656,4dbf9662be216b57b33a7c78c98f63593d16a3cd@65.108.127.160:46656,881d2f60fdf355890a367acaca27ad647f7f0b8a@65.108.204.107:26656,8b7f44a0e04fe817e089839b8a2e69189f024d5d@37.60.246.80:15656,fe74efeb172b700f462a0d81657288208706565d@37.27.13.51:26656,49329ba22c738e0a8ba172e84e187f0f8409e419@95.216.22.44:16656,fbe54f5ef1ef4d2e1c9541b416efb70f305a60f2@37.27.12.181:26656,087e70916b110025e25626c41a1173166be9f2db@65.21.32.216:60856,15d98d28c80bc2fe02ee5be4a7098d401e4f5aab@37.27.35.234:26656,bf6ae47aa4746811d47d495f3ae1987118541343@65.109.93.152:26806,19b35c650a17e5120ae4930506e71d975fb7146c@78.47.143.11:26656,1e73da0b04fc067147dac665800f39d439c7c2bf@144.91.126.238:11656,664072ad3414ad4253c127ed21345349dea64c9a@167.235.17.29:26656,27e1c6c211f0ec0e7ca6907f30c201e7b128d694@138.201.31.235:26656,5a7977896986c3dd90bdf5c0b843326866bba789@78.46.99.50:26656,2b2c2ace720dddcfd8f8c0b5a75b31987c960deb@167.235.34.120:26656,3fefc4449fe482f60c5b7ca554ea85335c295c55@135.181.134.236:26656,c90c4360be9ff903c4c58f4bb5a1e0322640616a@167.235.12.38:14656,aad7e706d7744278d3dc85dde629d3f63946e4e8@95.111.249.226:26656,cdc4fd76b359cbfa1eb76febd6c04a0da92158f1@95.217.209.27:26656,b7787910d1ad7eaebaad853aa7d5d3a23bdb0dd7@46.4.108.72:26656,55352556de7f26d85ff8b83bb4d6552a2dac8964@37.60.238.186:36656,b35ba40c2946403d81a247a79296bc83faa1f473@213.199.34.40:26656,057057e6fa1ecc183b6206ea107f66d8d0728059@109.199.118.172:26656,f3af4589b9353f79c7b21703dbc812e395e98010@38.242.145.87:26656,41399c74b2d159e3cb63ee282550b76f1d3c056f@5.9.209.148:26656,ecb264819f34d492906122b464dec39aec1a6b20@37.27.2.83:26656,4975453979deeb048e3f5d4ad07959928f3069b8@51.81.185.180:36656,e1d255b282cd074f41176287fa2d7a126db2dd2f@144.76.62.122:26656,78c7fa5920ac261c03994dd23edf84112055e096@49.13.161.186:26656,d9b1c63210195df7a83e775e7790129b480a1dbb@95.179.250.128:36656,fcebd9733d536607456acb1df1ab8eb6a6f49d89@109.199.120.89:26656,c810c88b75e47991897b105059160c010387825f@168.119.97.26:26656,8fb2e2c59658f4e269aa6685449b1326021dd1a0@167.86.122.72:26656,fbd7150f94c4f3e8bf542b1820fd99905b23e82e@49.13.145.183:26656,094a3bc56e83d8a86012207315827a7cdc45d9b2@135.181.176.109:28316,136c50c29240f5f1cdcd95d9833ac10a3a5a32a7@65.109.34.241:26656,8046edae085a61a0597556b02892d290eb2cf204@91.109.21.158:26656,5586cbba4c8c5a810d5cde7a1a9b7355fbd372b4@65.109.239.90:26656,a23681c39c099fd0d12b8ced173ed716909a6220@51.89.21.232:26656,c8333d73f10b6cc83a5a10dfa51a374366ebd56d@5.75.131.173:26656,7bd5a11fb2333036061baded7be0c9dd838ac665@194.163.150.181:44856,cee875910e8ce0e500f651079ac160b92162aa66@213.199.35.216:26656,0ff3504db616694c120ad76bb2c798ae8dbdcf0b@31.220.77.7:26656,b363ae7542eea55264bcf67906bf0e7118015d11@142.132.152.46:11656,546568415dc71e95bc6a6238000aea0a9f51652a@213.199.38.233:26656,89da893aafe2a2b19145fd24d6157259fa7ed932@109.199.119.165:26656,257e7d6a442523a272bd0c81d458aa4d866def0e@173.249.18.23:26656,dfdf777685f8b4ef529c371aa1ed9160a810ddf4@213.199.37.254:26656,bc8b05df95c67f23a6f4a012516866e9fdd0ffd6@173.249.35.20:26656,660e9306994e8e6690c0f076be45a4439c78fe0d@198.244.215.141:30656,eb42758cab3b6cf4883dac15c605ff23fcfe2925@37.60.251.62:26656,c590c2d28dbd34eea3ccc53746de1b9c80151217@23.88.74.54:36656,30ce073aff34fec4e3d9dfee8e2a8147f70b788d@84.54.23.111:26656,2aafb5304c712f7aa37db9be2869cc84c790d13f@37.27.7.169:26656,a662be5f460cff9bf36030461b5a7e6a06085836@109.199.121.188:26656,97c1dd3bad013143d75fab4bfd55d15939eea39a@128.140.4.126:26656,6d14ef26f5455a9d8248f19891fa4be29fd848c6@95.217.35.179:26056,86846d942428b06b1a440757bb94b590d18db8b0@161.97.113.53:36656,32c89272660d0d30c5db77b19e48ad980cc24bd9@37.60.238.126:36656,d6ec6a99139b58814a0a6227a7616b9a1ed7aec2@31.169.73.57:26656,82826e41545f9ce904dd23dccae7a24ff7ca4509@57.128.141.207:26656,a985b30974a127852f11da5646f76550e6e79f88@45.88.223.97:26656,9fc807c93b07c432462be852fee18bcaecbcb47f@128.199.62.21:26656,5b705811fb0bfb27ea9429b9cff8041df1b3fa71@138.201.201.106:26656,49579eef556f4e18fa2aa097e8a607b83512f599@78.47.110.82:26656,814f50857ab67f64df7e447fc7933210e5b9b75b@51.178.92.69:15656,7ec8e5dad5ed81b6fd275284386eb651b6e8bc8c@65.109.97.248:26656,4715214d543eb362c11ebd4a14c08d18278ee3af@194.150.220.191:26656,89752fa7945a06e972d7d860222a5eeaeab5c357@128.140.70.97:26656,f4ed8ef2392f3d2a432b82bbad2106403314ebda@89.39.13.142:26656,3439f727e2852d646e8dad574ab697c62db63036@213.199.41.78:26656,2a37b7afb943a6e9e93358ee2d9bafb0b1d8f0a5@194.195.87.190:26656,f298f2b049a5eb07cba0f0e67c3153018e083a2f@149.102.154.95:22656,5ebd3b1590d7383c0bb6696ad364934d7f1c984e@160.202.128.199:56156,5de3db0f867c1e923c1b7d09b638ff6cadbbc0a1@194.163.148.35:14656"
SNAP_RPC="https://crossfi-testnet-rpc.itrocket.net:443"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.mineplex-chain/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/.mineplex-chain/config/config.toml
mv $HOME/.mineplex-chain/priv_validator_state.json.backup $HOME/.mineplex-chain/data/priv_validator_state.json
sudo systemctl restart crossfid && sudo journalctl -u crossfid -f
sudo systemctl stop crossfid
cp $HOME/.mineplex-chain/data/priv_validator_state.json $HOME/.mineplex-chain/priv_validator_state.json.backup
rm -rf $HOME/.mineplex-chain/data $HOME/.mineplex-chain/wasmPath
curl https://testnet-files.itrocket.net/crossfi/snap_crossfi.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.mineplex-chain
mv $HOME/.mineplex-chain/priv_validator_state.json.backup $HOME/.mineplex-chain/data/priv_validator_state.json
sudo systemctl restart crossfid && sudo journalctl -u crossfid -f
66bdf53ec0c2ceeefd9a4c29d7f7926e136f114a@crossfi-testnet-peer.itrocket.net:36656
dd83e3c7c4e783f8a46dbb010ec8853135d29df0@crossfi-testnet-seed.itrocket.net:36656
PEERS="66bdf53ec0c2ceeefd9a4c29d7f7926e136f114a@crossfi-testnet-peer.itrocket.net:36656,54d39f9900e89427df4cb78c8b4e0dccc36d8485@65.109.68.69:26656,2ce3b5d3ce236afe1fe1f4024c888ea59febac4a@65.108.206.118:60556,3bf54dd549c4fc813fc5a3e88980f7ec5a96e327@135.181.221.161:26656,73746965df645665935ea6c3dcca5dfad7eabca8@109.199.116.240:26656,36cdb99f70ce1b25701ef36e4677283604df7f72@135.181.254.119:26656,4dbf9662be216b57b33a7c78c98f63593d16a3cd@65.108.127.160:46656,881d2f60fdf355890a367acaca27ad647f7f0b8a@65.108.204.107:26656,8b7f44a0e04fe817e089839b8a2e69189f024d5d@37.60.246.80:15656,fe74efeb172b700f462a0d81657288208706565d@37.27.13.51:26656,49329ba22c738e0a8ba172e84e187f0f8409e419@95.216.22.44:16656,fbe54f5ef1ef4d2e1c9541b416efb70f305a60f2@37.27.12.181:26656,087e70916b110025e25626c41a1173166be9f2db@65.21.32.216:60856,15d98d28c80bc2fe02ee5be4a7098d401e4f5aab@37.27.35.234:26656,bf6ae47aa4746811d47d495f3ae1987118541343@65.109.93.152:26806,19b35c650a17e5120ae4930506e71d975fb7146c@78.47.143.11:26656,1e73da0b04fc067147dac665800f39d439c7c2bf@144.91.126.238:11656,664072ad3414ad4253c127ed21345349dea64c9a@167.235.17.29:26656,27e1c6c211f0ec0e7ca6907f30c201e7b128d694@138.201.31.235:26656,5a7977896986c3dd90bdf5c0b843326866bba789@78.46.99.50:26656,2b2c2ace720dddcfd8f8c0b5a75b31987c960deb@167.235.34.120:26656,3fefc4449fe482f60c5b7ca554ea85335c295c55@135.181.134.236:26656,c90c4360be9ff903c4c58f4bb5a1e0322640616a@167.235.12.38:14656,aad7e706d7744278d3dc85dde629d3f63946e4e8@95.111.249.226:26656,cdc4fd76b359cbfa1eb76febd6c04a0da92158f1@95.217.209.27:26656,b7787910d1ad7eaebaad853aa7d5d3a23bdb0dd7@46.4.108.72:26656,55352556de7f26d85ff8b83bb4d6552a2dac8964@37.60.238.186:36656,b35ba40c2946403d81a247a79296bc83faa1f473@213.199.34.40:26656,057057e6fa1ecc183b6206ea107f66d8d0728059@109.199.118.172:26656,f3af4589b9353f79c7b21703dbc812e395e98010@38.242.145.87:26656,41399c74b2d159e3cb63ee282550b76f1d3c056f@5.9.209.148:26656,ecb264819f34d492906122b464dec39aec1a6b20@37.27.2.83:26656,4975453979deeb048e3f5d4ad07959928f3069b8@51.81.185.180:36656,e1d255b282cd074f41176287fa2d7a126db2dd2f@144.76.62.122:26656,78c7fa5920ac261c03994dd23edf84112055e096@49.13.161.186:26656,d9b1c63210195df7a83e775e7790129b480a1dbb@95.179.250.128:36656,fcebd9733d536607456acb1df1ab8eb6a6f49d89@109.199.120.89:26656,c810c88b75e47991897b105059160c010387825f@168.119.97.26:26656,8fb2e2c59658f4e269aa6685449b1326021dd1a0@167.86.122.72:26656,fbd7150f94c4f3e8bf542b1820fd99905b23e82e@49.13.145.183:26656,094a3bc56e83d8a86012207315827a7cdc45d9b2@135.181.176.109:28316,136c50c29240f5f1cdcd95d9833ac10a3a5a32a7@65.109.34.241:26656,8046edae085a61a0597556b02892d290eb2cf204@91.109.21.158:26656,5586cbba4c8c5a810d5cde7a1a9b7355fbd372b4@65.109.239.90:26656,a23681c39c099fd0d12b8ced173ed716909a6220@51.89.21.232:26656,c8333d73f10b6cc83a5a10dfa51a374366ebd56d@5.75.131.173:26656,7bd5a11fb2333036061baded7be0c9dd838ac665@194.163.150.181:44856,cee875910e8ce0e500f651079ac160b92162aa66@213.199.35.216:26656,0ff3504db616694c120ad76bb2c798ae8dbdcf0b@31.220.77.7:26656,b363ae7542eea55264bcf67906bf0e7118015d11@142.132.152.46:11656,546568415dc71e95bc6a6238000aea0a9f51652a@213.199.38.233:26656,89da893aafe2a2b19145fd24d6157259fa7ed932@109.199.119.165:26656,257e7d6a442523a272bd0c81d458aa4d866def0e@173.249.18.23:26656,dfdf777685f8b4ef529c371aa1ed9160a810ddf4@213.199.37.254:26656,bc8b05df95c67f23a6f4a012516866e9fdd0ffd6@173.249.35.20:26656,660e9306994e8e6690c0f076be45a4439c78fe0d@198.244.215.141:30656,eb42758cab3b6cf4883dac15c605ff23fcfe2925@37.60.251.62:26656,c590c2d28dbd34eea3ccc53746de1b9c80151217@23.88.74.54:36656,30ce073aff34fec4e3d9dfee8e2a8147f70b788d@84.54.23.111:26656,2aafb5304c712f7aa37db9be2869cc84c790d13f@37.27.7.169:26656,a662be5f460cff9bf36030461b5a7e6a06085836@109.199.121.188:26656,97c1dd3bad013143d75fab4bfd55d15939eea39a@128.140.4.126:26656,6d14ef26f5455a9d8248f19891fa4be29fd848c6@95.217.35.179:26056,86846d942428b06b1a440757bb94b590d18db8b0@161.97.113.53:36656,32c89272660d0d30c5db77b19e48ad980cc24bd9@37.60.238.126:36656,d6ec6a99139b58814a0a6227a7616b9a1ed7aec2@31.169.73.57:26656,82826e41545f9ce904dd23dccae7a24ff7ca4509@57.128.141.207:26656,a985b30974a127852f11da5646f76550e6e79f88@45.88.223.97:26656,9fc807c93b07c432462be852fee18bcaecbcb47f@128.199.62.21:26656,5b705811fb0bfb27ea9429b9cff8041df1b3fa71@138.201.201.106:26656,49579eef556f4e18fa2aa097e8a607b83512f599@78.47.110.82:26656,814f50857ab67f64df7e447fc7933210e5b9b75b@51.178.92.69:15656,7ec8e5dad5ed81b6fd275284386eb651b6e8bc8c@65.109.97.248:26656,4715214d543eb362c11ebd4a14c08d18278ee3af@194.150.220.191:26656,89752fa7945a06e972d7d860222a5eeaeab5c357@128.140.70.97:26656,f4ed8ef2392f3d2a432b82bbad2106403314ebda@89.39.13.142:26656,3439f727e2852d646e8dad574ab697c62db63036@213.199.41.78:26656,2a37b7afb943a6e9e93358ee2d9bafb0b1d8f0a5@194.195.87.190:26656,f298f2b049a5eb07cba0f0e67c3153018e083a2f@149.102.154.95:22656,5ebd3b1590d7383c0bb6696ad364934d7f1c984e@160.202.128.199:56156,5de3db0f867c1e923c1b7d09b638ff6cadbbc0a1@194.163.148.35:14656"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.mineplex-chain/config/config.toml
wget -O $HOME/.mineplex-chain/config/addrbook.json https://testnet-files.itrocket.net/crossfi/addrbook.json
Sign in to your account