Installation guide
Installation
Manual Installation
Gerekli Sistem
Ubuntu 22.04
4 vCPU
8 GB RAM
160 SSD
Install dependencies
UPDATE SYSTEM AND INSTALL BUILD TOOLS
Copy
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
INSTALL GO
Copy
cd $HOME
VER="1.20.3"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin
Download and build binaries
Copy
cd $HOME
rm -rf artela
git clone https://github.com/artela-network/artela
cd artela
git checkout v0.4.7-rc6
make install
Set Vars
Moniker
yerine validator adınızı ekliyoruz.
Copy
artelad config node tcp://localhost:26657
artelad config keyring-backend os
artelad config chain-id artela_11822-1
artelad init Moniker --chain-id artela_11822-1
Download Genesis and Addrbook
Copy
wget -O $HOME/.artelad/config/genesis.json https://raw.githubusercontent.com/CoinHuntersTR/props/main/Artela/genesis.json
wget -O $HOME/.artelad/config/addrbook.json https://raw.githubusercontent.com/CoinHuntersTR/props/main/Artela/addrbook.json
Config Pruning
Copy
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.artelad/config/app.toml
# set minimum gas price, enable prometheus and disable indexing
sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.025art"|g' $HOME/.artelad/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.artelad/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.artelad/config/config.toml
Set seeds and peers
Copy
SEEDS="8d0c626443a970034dc12df960ae1b1012ccd96a@artela-testnet-seed.itrocket.net:30656"
PEERS="5c9b1bc492aad27a0197a6d3ea3ec9296504e6fd@artela-testnet-peer.itrocket.net:30656,[email protected]:26656,[email protected]:3456,[email protected]:45656,[email protected]:3456,[email protected]:26656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:45656,[email protected]:45656,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:26656,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:25656,[email protected]:3456,[email protected]:30656,[email protected]:25656,[email protected]:45656,[email protected]:26656,[email protected]:27656,[email protected]:3456,[email protected]:25656,[email protected]:23456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:26656,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:23410,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:25656,[email protected]:25656,[email protected]:3456,[email protected]:25656,[email protected]:3456,[email protected]:3456,[email protected]:26656,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456,[email protected]:3456"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.artelad/config/config.toml
create service file
Copy
sudo tee /etc/systemd/system/artelad.service > /dev/null <<EOF
[Unit]
Description=Artela node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.artelad
ExecStart=$(which artelad) start --home $HOME/.artelad
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
enable and start service
Copy
sudo systemctl daemon-reload
sudo systemctl enable artelad
sudo systemctl start artelad && sudo journalctl -u artelad -f
Snapshot
Stop the service and reset the data
Copy
sudo systemctl stop artelad
cp $HOME/.artelad/data/priv_validator_state.json $HOME/.artelad/priv_validator_state.json.backup
rm -rf $HOME/.artelad/data $HOME/.artelad/wasmPath
Download latest snapshot
Copy
curl -o - -L https://snapshots.coinhunterstr.com/artela/artela_7964034.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.artelad
mv $HOME/.artelad/priv_validator_state.json.backup $HOME/.artelad/data/priv_validator_state.json
Restart the service and check the log
Copy
sudo systemctl restart artelad && sudo journalctl -u artelad -f
Sync Node
Node ağ ile eşleşmiş olması gerekiyor. Bunun için
Copy
artelad status 2>&1 | jq
komutunu çalıştırdığınızda
false
çıktısı vermesi gerekir.True
çıktı alırsanız aşağıdaki adımlara devam etmeyin.
Run a Validator
Öncelikle cüzdan oluşturalım
walletname
yerin cüzdan ismi giriyoruz.
Copy
artelad keys add walletname
Faucetten token istemek için size EVM adresi gerekli olacak bunun için oluşturduğunuz cüzdanın EVM adresini alalım. burada wallet
yerine cüzdan adınızı yazmayı unutmayın. Artela discord'da faucet kanalından, token isteyelim.
Copy
echo "0x$(artelad debug addr $(artelad keys show wallet -a) | grep hex | awk '{print $3}')"
Copy
artelad tx staking create-validator \
--amount 1000000uart \
--from wallet \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(artelad tendermint show-validator) \
--moniker "MonikerName" \
--identity "" \
--website "" \
--details "elessarnodes" \
--chain-id artela_11822-1 \
--gas auto --gas-adjustment 1.5 \
-y
wallet
alanına cüzdan ismimizi yazıyoruz.
MonikerName
yerine Validator ismimizi yazıyoruz.
identity
alanına Avatar ID'mizi yazıyoruz. Bunun için Avatarımızı keybase.io sitesine yükleyip ID alabilirsiniz.
website
alanına twitter yada github adresinizi ekleyebilirsiniz.
Security
To protect you keys please don`t share your privkey, mnemonic and follow a basic security rules
Set up ssh keys for authentication
You can use this guide to configure ssh authentication and disable password authentication on your server
Firewall security
Set the default to allow outgoing connections, deny all incoming, allow ssh and node p2p port
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow ssh/tcp
sudo ufw allow ${ARTELA_PORT}656/tcp
sudo ufw enable
Delete node
sudo systemctl stop artelad
sudo systemctl disable artelad
sudo rm -rf /etc/systemd/system/artelad.service
sudo rm $(which artelad)
sudo rm -rf $HOME/.artelad
sed -i "/ARTELA_/d" $HOME/.bash_profile
Last updated