InuX Dev
  • 🤝Introduction
  • Getting started
    • Blockchain Node
    • Prerequisites
  • Artela
    • Installation
    • State Sync
    • Useful Commands
  • 0g
    • Installation
    • Sync
    • Public
Powered by GitBook
On this page
  • Update and upgrade
  • Install GO
  • Prepare artelad
  • Option 1: Build the source.​
  • Option 2: Download and Install Artelad​
  • Init node
  • Download genesis & addrbook
  • Set seeds and peers
  • Config pruning
  • Set minimum gas price and null indexer
  • Create Service
  • Reset blockchain info and restart your node
  1. Artela

Installation

If you want to setup Artela fullnode manually follow the steps below

Hardware Recommended Requirements:

  • 8 CPU Cores

  • 16GB of Memory

  • 1TB SSD

  • 200mbps Network Bandwidth

Update and upgrade

sudo apt update && sudo apt upgrade -y

Install GO

if ! [ -x "$(command -v go)" ]; then
  ver="1.19.3"
  cd $HOME
  wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
  sudo rm -rf /usr/local/go
  sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
  rm "go$ver.linux-amd64.tar.gz"
  echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
  source ~/.bash_profile
fi

Prepare artelad

You can start with installing Artelad or building source code

cd $HOME
rm -rf artela
git clone https://github.com/artela-network/artela.git
cd artela
git checkout v0.4.7-rc6
make install

Copy the binary artelad to /usr/local/bin.


Init node

Replace <custom_moniker> with your own validator name

artelad init <custom_moniker> # e.g artelad init testnode

Setting node configuration

artelad config chain-id artela_11822-1
artelad config keyring-backend test
artelad config node tcp://localhost:23457

Download genesis & addrbook

curl -Ls "https://inux.dev/assets/files/artela/genesis.json" > $HOME/.artela/config/genesis.json
curl -Ls "https://inux.dev/assets/files/artela/addrbook.json" > $HOME/.artela/config/addrbook.json

Set seeds and peers

PEERS="fc1e0fc76767255ae8c7f1bef72e16c7c59dfc48@artela-testnet.peers.l0vd.com:4556"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.artela/config/config.toml

Config pruning

pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="50"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.artela/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.artela/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.artela/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.artela/config/app.toml

Set minimum gas price and null indexer

sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.02uart\"/" $HOME/.artela/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.artela/config/config.toml

Create Service

sudo tee /etc/systemd/system/artelad.service > /dev/null <<EOF
[Unit]
Description=Artela testnet
After=network-online.target

[Service]
User=$USER
ExecStart=$(which artelad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Reset blockchain info and restart your node

sudo systemctl daemon-reload
sudo systemctl enable artelad
artelad tendermint unsafe-reset-all --home $HOME/.artela --keep-addr-book
sudo systemctl restart artelad && sudo journalctl -u artelad -f -o cat
PreviousArtelaNextState Sync

Last updated 1 year ago

Option 1: Build the source.

Option 2: Download and Install Artelad

Find the binary artelad at Artela Network GitHub repository, .

​
​
releases link