Сontents
RPC Endpoin
http://65.21.132.27:28057
LCD (Rest) API Endpoint
http://65.21.132.27:1317
GRPC Endpoint
http://65.21.132.27:9800
sudo systemctl stop junod
cp $HOME/.juno/data/priv_validator_state.json $HOME/.juno/priv_validator_state.json.backup
rm -rf $HOME/.juno/data
cd $HOME/.juno/
wget http://65.21.132.27/Snapshot_Juno_Main.tar.gz -O - | tar -xz
cp $HOME/.juno/priv_validator_state.json.backup $HOME/.juno/data/priv_validator_state.json
rm $HOME/.juno/Snapshot_Jackal-test.tar.gz
sudo systemctl restart junod && sudo journalctl -u junod -f --no-hostname -o cat
Pruning
# Prune Type
pruning = "custom"
# Prune Strategy
pruning-keep-every = 2000
# State-Sync Snapshot Strategy
snapshot-interval = 2000
snapshot-keep-recent = 5
SNAP_RPC="http://65.21.132.27:28057"
Name_bin="junod"
Name_config_file=".juno"
Name_service="junod"
peers="[email protected]:28056"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
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/$Name_config_file/config/config.toml
sudo systemctl stop $Name_service && $Name_bin tendermint unsafe-reset-all --home $HOME/$Name_config_file --keep-addr-book
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/$Name_config_file/config/config.toml
sudo systemctl restart $Name_service
journalctl -fu $Name_service -o cat
Pruning
# Prune Type
pruning = "default"
# Prune Strategy
pruning-keep-every = 0
# State-Sync Snapshot Strategy
snapshot-interval = 0
snapshot-keep-recent = 0
SNAP_RPC="http://135.181.116.109:28057"
Name_bin="junod"
Name_config_file=".juno"
Name_service="junod"
peers="[email protected]:28056"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) && \
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
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/$Name_config_file/config/config.toml
sudo systemctl stop $Name_service && $Name_bin tendermint unsafe-reset-all --home $HOME/$Name_config_file --keep-addr-book
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/$Name_config_file/config/config.toml
sudo systemctl restart $Name_service
journalctl -fu $Name_service -o cat