⚒️Installation

  1. Update packages and install useful tools.

sudo apt update && sudo apt upgrade --yes && \
sudo apt install git build-essential ufw curl jq snapd screen ncdu nano fuse ufw --yes
  1. Install go using snap.

sudo snap install go --classic && \
echo 'export GOPATH="$HOME/go"' >> ~/.profile && \
echo 'export GOBIN="$GOPATH/bin"' >> ~/.profile && \
echo 'export PATH="$GOBIN:$PATH"' >> ~/.profile && \
source ~/.profile && \
go version
  1. Build the binary from source.

git clone https://github.com/Pylons-tech/pylons
cd pylons
git checkout v1.1.4
make install
pylonsd version
  1. Initialize your node.

pylonsd init <node_name> --chain-id=pylons-mainnet-1
  1. Download genesis.

 curl -s  https://raw.githubusercontent.com/Pylons-tech/pylons/main/networks/pylons-mainnet-1/genesis.json > ~/.pylons/config/genesis.json
  1. Add persistent peers to config.toml.

PEERS="2c50b8171af784f1dca3d37d5dda5e90f1e1add8@95.214.55.4:26656,4f90babf520599ffe606157b0151c4c9bc0ec23f@194.163.172.115:26666,ebecc93e7865036fbdf8d3d54a624941d6e41ba1@104.200.136.57:26656,25e7ef64b41a636e3fb4e9bb1191b785e7d1d5cc@46.166.140.172:26656,2c50b8171af784f1dca3d37d5dda5e90f1e1add8@95.214.55.4:26656,4f90babf520599ffe606157b0151c4c9bc0ec23f@194.163.172.115:26666,ebecc93e7865036fbdf8d3d54a624941d6e41ba1@104.200.136.57:26656,022ee5a5231a5dec014841394f8ce766d657cff5@95.214.53.132:26156,a6972be573807d34f28a337c0f7d599e0014be80@161.97.99.247:26656,515ffd755a92a47b56233143f7c25481dbe99f94@161.97.99.251:26606,9c3261f7859a4f43a72cb9eef8d1fcfc70dc7e7c@95.216.204.255:26656,f6a9cc00142a4ce2fc1cbe536ba7ac9701f0786f@62.113.119.213:11221,665a747edcb6c68d3fe317053bd2cbcae1ef0843@138.201.246.185:26656,6144bf581d89212bf294de31e66f94d628f09053@65.109.92.235:37656,cbad56deb74e1349e5ed8d00cd1338c675d71075@167.86.75.50:26656,84350ef836590a08e273253f1056eb7175f536a4@167.235.2.206:26616,71b2ccc335a2ed88854444d23c2f2e2fd343c7e9@65.109.52.156:9656,85e236a129337efe946c6a68ee72a6da87825bc5@65.109.92.240:20256,3336e645081fcddb72917c017ae232fa6b7c8cf4@84.46.248.174:26656,e55c36e7ce120599701b14532c864bec57d4477b@161.97.132.66:26656,d977d11f5741d8e9be84faa390af55de43659f0c@95.217.225.214:28656,d0769a0e7fa1fc86baa0b2b9e9c6d9f7ba2dd2b6@46.4.23.108:36656,5eb3daf435d1d8a14e0a42e9dfbeca6877b2d1ca@65.108.2.41:46656,90e9144c74d83f966fbbda20c070a28d3d6e48a2@65.108.135.211:46656,7b6b13bcbd30311a407e193d0c7b21ed3dc15cd1@pylons.nodejumper.io:30656,,d6685eb44553000f5e7abfd560a7c70b534dcc25@65.108.199.222:21116,f8f74d840f40168111353927e91f475a262d20ad@65.21.142.30:27656,98634f7f77334b0df7b9c4d16d41b31ace4ceaa8@81.16.237.142:11223,d71cb7a9cc84e3c06ce2dc90f340d21ae53390ff@54.37.129.164:46656,35c6b3b3f273e845da511751d98b54ca3fd56170@65.109.49.163:26651,574a9497ef09f0364a7623ca45d7a5a067f4bc40@64.227.144.199:26656,2a21d71e5e16222fa08454634cad5db30d56dfa9@192.248.159.61:26656,1233d3696f3fbfb44edfaf72640bb91d085f3dae@65.109.34.133:61356,0d876a9311613a716a65f588c86c87f47e321945@pylons.sergo.dev:12213,32cf1fa54cb6762ea2713d93bd76c47ad3323d1c@88.99.243.241:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.pylons/config/config.toml
  1. Set up pruning (optional).

pruning="custom"
pruning_keep_recent="100"
pruning_keep_every="0"
pruning_interval="10"
sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" $HOME/.pylons/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.pylons/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.pylons/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.pylons/config/app.toml
  1. Create service file.

sudo tee /etc/systemd/system/pylonsd.service > /dev/null <<EOF
[Unit]
Description=Pylons Daemon
After=network-online.target

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

[Install]
WantedBy=multi-user.target
EOF
  1. Enable and start service.

systemctl daemon-reload
systemctl enable pylonsd
systemctl restart pylonsd
    journalctl -u pylonsd -f -o cat

If you would like to speed up the sync process, you may try using State Sync.

Last updated