"REGEN" State Sync / Data snap services from - AM Solutions.

RPC  https://regen-rpc.theamsolutions.info  |  API https://regen-api.theamsolutions.info
 

Telegram Bot / Notification service Guide for Validator -  LINK

TMKMS Remote signer service - LINK 

STEP BY STEP INSTRUCTIONS

Install GO & Dependencies  HERE

git clone https://github.com/regen-network/regen-ledger
cd regen-ledger
ver=$(curl -s https://regen-rpc.theamsolutions.info/abci_info? | jq -r ."result"."response"."version")
git checkout v${ver}
make install

regen init <moniker> --chain-id regen-1

wget -qO $HOME/.regen/config/genesis.json https://raw.githubusercontent.com/regen-network/mainnet/main/regen-1/genesis.json

sudo tee /etc/systemd/system/regen.service << EOF
[Unit]
Description=Regen
After=network-online.target
#
[Service]
User=$USER
ExecStart=$(which regen) start
RestartSec=10
Restart=on-failure
LimitNOFILE=65535
#
[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable regen
sudo systemctl daemon-reload
 


STATE SYNC SERVICE
 

Please make sure You have latest, officially launched version of Regen binaries.



sudo systemctl stop regen.service
regen tendermint  unsafe-reset-all --home $HOME/.regen

SNAP_RPC="https://regen-rpc.theamsolutions.info:443"; \
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\"|" $HOME/.regen/config/config.toml

peers="1bfd3b0df0917c4dbfb663526b107a231b547cf2@161.97.82.203:26656" \
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.regen/config/config.toml \
wget -qO $HOME/.regen/config/addrbook.json https://snapshots.theamsolutions.info/regen-addr.json

sudo systemctl restart regen.service && sudo journalctl -u regen.service -f -o cat

 

 DATA SNAPSHOT
(updated every 6 hrs.)


#check snapshot info  : curl -s https://snapshots.theamsolutions.info | egrep -o ">regen-snap*.*tar" | tr -d ">"

snap=$(curl -s https://snapshots.theamsolutions.info | egrep -o ">regen-snap*.*tar" | tr -d ">")
wget -P $HOME https://snapshots.theamsolutions.info/${snap}; sudo systemctl stop regen
mv $HOME/.regen/data/priv_validator_state.json $HOME
rm -rf  $HOME/.regen/data; tar xf $HOME/${snap} -C $HOME/.regen; rm $HOME/${snap}
mv $HOME/priv_validator_state.json $HOME/.regen/data/
wget -qO $HOME/.regen/config/addrbook.json https://snapshots.theamsolutions.info/regen-addr.json
sudo systemctl restart regen
sudo journalctl -u regen -fn 50 -o cat

 

GOOD LUCK!

 

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details and accept the service to view the translations.