Skip to content

Latest commit

 

History

History
88 lines (72 loc) · 3.93 KB

README.md

File metadata and controls

88 lines (72 loc) · 3.93 KB

Visit Our Website : NodeX Capital Official


LumenX Mainnet | Chain ID: LumenX | Custom Port: 112

Community Documentation:

Explorer:

Automatic Installer (Must Using Ubuntu 22 Version!)

You can setup your LumenX fullnode in few minutes by using automated script below

wget -O lumenx.sh https://raw.githubusercontent.com/nodexcapital/mainnet/main/lumenx/lumenx.sh && chmod +x lumenx.sh && ./lumenx.sh

Public Endpoint

Snapshot

sudo systemctl stop lumenxd
cp $HOME/.lumenx/data/priv_validator_state.json $HOME/.lumenx/priv_validator_state.json.backup
rm -rf $HOME/.lumenx/data

curl -L https://snap.nodexcapital.com/lumenx/lumenx-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.lumenx
mv $HOME/.lumenx/priv_validator_state.json.backup $HOME/.lumenx/data/priv_validator_state.json

sudo systemctl start lumenxd && sudo journalctl -u lumenxd -f --no-hostname -o cat

State Sync

sudo systemctl stop lumenxd
cp $HOME/.lumenx/data/priv_validator_state.json $HOME/.lumenx/priv_validator_state.json.backup
lumenxd tendermint unsafe-reset-all --home $HOME/.lumenx

STATE_SYNC_RPC=https://rpc.lumenx.nodexcapital.com:443
STATE_SYNC_PEER="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)

sed -i \
  -e "s|^enable *=.*|enable = true|" \
  -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.lumenx/config/config.toml

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

sudo systemctl restart lumenxd && sudo journalctl -u lumenxd -f --no-hostname -o cat

Disable Sync with State Sync

After successful synchronization, we advise you to disable synchronization with state sync and restart the node

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.lumenx/config/config.toml
sudo systemctl restart lumenxd && sudo journalctl -u lumenxd -f --no-hostname -o cat

Live Peers

PEERS="$(curl -sS https://rpc.lumenx.nodexcapital.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.lumenx/config/config.toml

Addrbook (Update every hour)

curl -Ls https://snap.nodexcapital.com/lumenx/addrbook.json > $HOME/.lumenx/config/addrbook.json

Genesis

curl -Ls https://snap.nodexcapital.com/lumenx/genesis.json > $HOME/.lumenx/config/genesis.json