Skip to main content

Pactus

Run the node using Docker or SystemD

SPECRecommend
CPU4 Cores
RAM4GB RAM
SSD100 GB

Install Docker

sudo apt update && sudo apt upgrade -y
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/ Pull image Pactus

docker pull pactus/pactus

2/ Create new wallet

docker run -it --rm -v ~/pactus:/root/pactus pactus/pactus pactus-daemon init
  • Select: Y
  • Save wallet seed

image

  • Number of Validators: 1

image

  • Save Validator Address and Reward Address

image

3/ Fill password

  • Change passwd_wallet
passpactus=passwd_wallet

4/ Run node

docker run -it -d -v ~/pactus:/root/pactus --network host --name pactus pactus/pactus pactus-daemon start --password $passpactus

5/ Check version

docker exec -it pactus pactus-daemon version

6/ Check log node

docker logs pactus -f

7. Change Config.toml

nano $HOME/pactus/config.toml

Before

[sync]
moniker = ""
session_timeout = "10s"
node_network = true
[logger.levels]
_consensus = "warn"
_grpc = "info"
_http = "info"
_network = "error"
_nonomsg = "info"
_pool = "error"
_state = "info"
_sync = "error"
default = "info"

After

  • Edit moniker = "" --> "Node name of you"
[sync]
moniker = ""
session_timeout = "10s"
node_network = true
  • Edit network = "error" --> "info"
[logger.levels]
_consensus = "warn"
_grpc = "info"
_http = "info"
_network = "info"
_nonomsg = "info"
_pool = "error"
_state = "info"
_sync = "error"
default = "info"

8/ Restart node

docker restart pactus

9/ Check Peers ID.

docker logs -f pactus

image

Update bootstrap. Create a new Fork and pull request to Pactus Github

Link Github

Thank to support VNBnode.

Visit us at: