Copy wget -O ~/.juno/config/genesis.json https://juno.declab.pro/genesis.json --inet4-only
Copy wget -O ~/.juno/config/addrbook.json https://juno.declab.pro/addrbook.json --inet4-only
Copy PEERS = 73ef1c0f9bc77fd925decf7fa41f22a35b5dc76d@juno.declab.pro:26612,0edf09d33c9f5429c7539f11a56e1e0ab8981529@144.217.158.129:26656,07191cd1f1968bd21373b53eb5b932deb408a5b7@167.235.216.230:27003,b1d278873767fad599ebf710f840d90c93e8caeb@95.111.249.160:26656,839088f5507a45d1cee03739f741d87749868009@198.244.165.175:16656,7b4cd4197afd6851abdf0875bfb3e348df8b03cc@65.109.61.50:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.juno/config/config.toml
Copy # Reset tendermint chain
junod tendermint unsafe-reset-all
# Download and unpack the archive
curl -o - -L https://juno.declab.pro/latest.tar.lz4 | lz4 -c -d - | tar -x -C ~/.juno
Copy RPC = "https://juno.declab.pro:26610"
LATEST_HEIGHT = $( curl -s $RPC /block | jq -r .result.block.header.height ); \
BLOCK_HEIGHT = $(( LATEST_HEIGHT - 2000 )); \
TRUST_HASH = $( curl -s "$RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash )
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$RPC,$RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" ~/.juno/config/config.toml