Bevm
END Testnet
Recommended Hardware Requirements
- 🖼️ Docker
- 🖼️ SystemD
Option 1 (Automatic) - STOPPED
cd $HOME && source <(curl -s https://raw.githubusercontent.com/vnbnode/binaries/main/Projects/BEVM/bevm-auto.sh)
Option 2 (Manual)
Install Docker
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
1/ Create folder bevm
mkdir $HOME/bevm && cd $HOME/bevm
2/ Pull image new
sudo docker pull btclayer2/bevm:testnet-v0.1.2
3/ Create config.json
nano $HOME/bevm/config.json
Note
Edit "Your-Node-Name" --> "Address Wallet"
{
"chain": "testnet",
"log-dir": "/log",
"enable-console-log": true,
"no-mdns": true,
"validator": true,
"unsafe-rpc-external": true,
"offchain-worker": "never",
"rpc-methods": "unsafe",
"log": "info,runtime=info",
"port": 30333,
"rpc-port": 8087,
"pruning": "archive",
"db-cache": 2048,
"name": "Wallet_Address",
"base-path": "/data",
"telemetry-url": "wss://telemetry-testnet.bevm.io/submit 1",
"bootnodes": []
}
Tip
Please use Ctrl + X + Y : Save config.json
3/ Run node
sudo docker run -d --restart always --name bevm \
-p 8087:8087 -p 30333:30333 \
-v $PWD/config.json:/config.json -v $PWD/data:/data \
-v $PWD/log:/log -v $PWD/keystore:/keystore \
btclayer2/bevm:testnet-v0.1.2 /usr/local/bin/bevm \
--config /config.json
Remove Node
cd $HOME
docker stop bevm
docker rm bevm
rm -r $HOME/bevm
Update & install the necessary utilities
caution
Change Your-address-wallet
MONIKER=<Your-address-wallet>
apt update && apt upgrade -y
apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev libgmp3-dev tar clang bsdmainutils ncdu unzip llvm libudev-dev make protobuf-compiler -y
Download binaries files
mkdir -p $HOME/.bevm && cd $HOME/.bevm
wget -O bevm https://github.com/btclayer2/BEVM/releases/download/testnet-v0.1.1/bevm-v0.1.1-ubuntu20.04
chmod 744 bevm
mv bevm /usr/bin/
bevm --version
# **Result should be**: bevm 0.1.1-ef190a5a903
tee /etc/systemd/system/bevm.service > /dev/null << EOF
[Unit]
Description=Bevm Validator Node
After=network-online.target
StartLimitIntervalSec=0
[Service]
User=$USER
Restart=always
RestartSec=3
LimitNOFILE=65535
ExecStart=/usr/bin/bevm --chain testnet --name $MONIKER --pruning archive --telemetry-url "wss://telemetry.bevm.io/submit 0"telemetry.polkadot.io/submit 0"
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable bevm
Run service & check logs
systemctl restart bevm && journalctl -u bevm -f -o cat
Check log node
tail -f log/bevm.log