RPC, API, gRPC

gRPC:

empower-mainnet-grpc.itrocket.net:443

Peers, Seeds, Live Peers, Addrbook

peers:

d363c61e28adabc85a25139682900df8054f059e@empower-mainnet-peer.itrocket.net:14656

seeds:

6740fa259552a628266a85de8c2a3dee7702b8f9@empower-mainnet-seed.itrocket.net:14656

live peers: (0 active)

PEERS="d363c61e28adabc85a25139682900df8054f059e@empower-mainnet-peer.itrocket.net:14656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.empowerchain/config/config.toml

peers scanner:

PEERS="f940f6cee89f6aae62d92eaec7cef27289eab1de@empower.rpc.m.anode.team:27656,[email protected]:26556,d363c61e28adabc85a25139682900df8054f059e@empower-mainnet-rpc.itrocket.net:14656,[email protected]:22056"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.empowerchain/config/config.toml

addrbook: (upd 1h)

wget -O $HOME/.empowerchain/config/addrbook.json https://server-3.itrocket.net/mainnet/empower/addrbook.json

genesis:

wget -O $HOME/.empowerchain/config/genesis.json https://server-3.itrocket.net/mainnet/empower/genesis.json

Snapshot

pruned
updated every available 24/7 (every server stores last 2 snapshots)
height: Loading...0 blocks agoBdb:
sudo systemctl stop empowerd
cp $HOME/.empowerchain/data/priv_validator_state.json $HOME/.empowerchain/priv_validator_state.json.backup
rm -rf $HOME/.empowerchain/data
curl https://server-3.itrocket.net/mainnet/empower/null | lz4 -dc - | tar -xf - -C $HOME/.empowerchain
mv $HOME/.empowerchain/priv_validator_state.json.backup $HOME/.empowerchain/data/priv_validator_state.json
sudo systemctl restart empowerd && sudo journalctl -u empowerd -f

State Sync

If you don't want to wait for a long synchronization you can use:

sudo systemctl stop empowerd

cp $HOME/.empowerchain/data/priv_validator_state.json $HOME/.empowerchain/priv_validator_state.json.backup
empowerd tendermint unsafe-reset-all --home $HOME/.empowerchain

peers="d363c61e28adabc85a25139682900df8054f059e@empower-mainnet-peer.itrocket.net:14656"  
SNAP_RPC="https://empower-mainnet-rpc.itrocket.net:443"

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.empowerchain/config/config.toml 

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 && 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/.empowerchain/config/config.toml

mv $HOME/.empowerchain/priv_validator_state.json.backup $HOME/.empowerchain/data/priv_validator_state.json

sudo systemctl restart empowerd && sudo journalctl -u empowerd -f

Wasm

Sorry, this project does not support WebAssembly.

logo
Copyright © 2024 ITRocket. All Rights Reserved.