Community Tools & Services
Blacknodes contribution to
Blacknodes contribution to
Snapshot is updated every 6hours
wget https://berafiles.blacknodes.net/berachain/berachain_artio-80085.tar.lz4 --inet4-only
lz4 -c -d berachain_artio-80085.tar.lz4 | tar -x -C $HOME/.berad/data
The Addrbook is updated everyday. If you are not getting peers you can Stop your node, download and replace your addrbook.json with the steps below, and restart your node.
wget -O addrbook.json https://berafiles.blacknodes.net/berachain/addrbook.json --inet4-only
mv addrbook.json $HOME/.berad/config/
This is copy of our genesis file
wget -O genesis.json https://berafiles.blacknodes.net/berachain/genesis.json --inet4-only
mv genesis.json $HOME/.berad/config/
https://berachain-testnet-api.blacknodes.net
https://berachain-testnet-rpc.blacknodes.net
berachain-testnet-grpc.blacknodes.net:9090
Install Monitoring Tools(Prometheus and Grafana using this script)
wget https://raw.githubusercontent.com/blacknodes/Scripts/main/install-monitoring-tools.sh
sudo chmod +x install-monitoring-tools.sh
./install-monitoring-tools.sh
Add Job "berachain-Node" in prometheus file
sed -i '/scrape_configs:/a \
- job_name: "berachain-Node"\
static_configs:\
- targets: ["localhost:26660"]' /opt/prometheus/prometheus.yml
Set prometheus to true in config.toml file And Restart the node and prometheus
sed -i '/prometheus =/s/false/true/' /root/.berad/config/config.toml
sudo systemctl restart berad.service
sudo systemctl restart prometheus.service
Make Sure to enable port 3000
sudo ufw allow 3000
Go To http://yourip:3000
Add New DataSource Prometheus
Set Alert
Use this metric for alert(You can also use other metrics too, we recommend this one if you are a validator)
increase(cometbft_consensus_validator_last_signed_height[5m])
Set Threshold (is below 15) and change type from range to instant
Add Notification Channel (Here we will use telegram )
Use https://t.me/BotFather to create your notification bot and https://t.me/userinfobot to check your Telegram ID.
Add new Contact point, paste your bot api token and telegram id there
Now you'll receive an alert in your telegram bot whenever your node will stop or get out of the active set!
Use this StateSync method to synchronize your node within 10minutes
SNAP_RPC=https://berachain-testnet-rpc.blacknodes.net: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
peers="72171a3549db0ab80eaa095364df6966d801d8a7@berachain-testnet.blacknodes.net:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.berad/config/config.toml
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\"\"|" ~/.berad/config/config.toml
sudo systemctl restart berad && sudo journalctl -u berad -f -o cat
Use our Live Peers list to quick connect your node with the network
Loading peers...
peers=$(curl -s https://services.blacknodes.net/Berachain/data/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.berad/config/config.toml
Use our BlackNodes Peer to quick connect your node with the network
72171a3549db0ab80eaa095364df6966d801d8a7@berachain-testnet.blacknodes.net:26656