Node Installation
Hardware requirements The following requirements are recommended for running ENTANGLE:
4 or more physical CPU cores
At least 1TB of SSD disk storage
At least 8GB of memory (RAM)
At least 100mbps network bandwidth
Manual Installation
# Update & install dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install clang pkg-config libssl-dev curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
# Set Firewall
sudo apt install -y ufw
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh
sudo ufw enable
# Install Go
cd $HOME
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.21.4.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
go version
# Set Vars
MONIKER=<YOUR_MONIKER_NAME_GOES_HERE>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export ENTANGLE_CHAIN_ID="entangle_33133-1"" >> $HOME/.bash_profile
echo "export ENTANGLE_PORT="21"" >> $HOME/.bash_profile
source $HOME/.bash_profile
# Download Binary
rm -rf entangle-blockchain/
git clone https://github.com/Entangle-Protocol/entangle-blockchain
cd entangle-blockchain/
make install
# Config and Init App
entangled config node tcp://localhost:${ENTANGLE_PORT}657
entangled config keyring-backend test
entangled config chain-id $ENTANGLE_CHAIN_ID
entangled init $MONIKER --chain-id $ENTANGLE_CHAIN_ID
# Add Genesis File and Addrbook
wget -O $HOME/.entangled/config/genesis.json https://syanodes.my.id/entangle/genesis.json
wget -O $HOME/.entangled/config/addrbook.json https://syanodes.my.id/entangle/addrbook.json
#Configure Seeds and Peers
seed="[email protected]:26656"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.entangled/config/config.toml
PEERS="[email protected]:15656,[email protected]:30656,[email protected]:26656,[email protected]:29656,[email protected]:23656,[email protected]:26656,[email protected]:26656,[email protected]:16656,[email protected]:12656,[email protected]:26656,[email protected]:33656,[email protected]:16656,[email protected]:36656,[email protected]:27322,[email protected]:25656,[email protected]:26656,[email protected]:61556,[email protected]:26656,[email protected]:29656,[email protected]:51656";
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.entangled/config/config.toml
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.entangled/config/config.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.entangled/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"10aNGL\"/" $HOME/.entangled/config/app.toml
# Config Pruning
pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="19"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.entangled/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.entangled/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.entangled/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.entangled/config/app.toml
# Set Custom Port
sed -i.bak -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${ENTANGLE_PORT}658\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${ENTANGLE_PORT}657\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${ENTANGLE_PORT}060\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${ENTANGLE_PORT}656\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${ENTANGLE_PORT}660\"%" $HOME/.entangled/config/config.toml
sed -i.bak -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${ENTANGLE_PORT}317\"%; s%^address = \":8080\"%address = \":${ENTANGLE_PORT}080\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${ENTANGLE_PORT}090\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${ENTANGLE_PORT}091\"%" $HOME/.entangled/config/app.toml
# Set Service File
sudo tee /etc/systemd/system/entangled.service > /dev/null <<EOF
[Unit]
Description=entangle-testnet
After=network-online.target
[Service]
User=$USER
ExecStart=$(which entangled) start --home $HOME/.entangled
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
# Enable and Start Service
sudo systemctl daemon-reload
sudo systemctl enable entangled
sudo systemctl start entangled
sudo journalctl -fu entangled -o cat
Last updated