Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Quasar-node
binary by running the following commands
#from $HOME dir
git clone https://github.com/quasar-finance/quasar-preview.git
cd quasar-preview
git fetch
git checkout v0.1.0
make install
To confirm that the node is well installed
quasarnoded version
#v0.1.0
Setting up the Node
Initialization node
Please choose your MONIKER name and replace it in the next command, it will represent your node
quasarnoded init MONIKER_NAME --chain-id quasar-1
This will generate severals files in ~/.quasarnoded/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.quasarnode/config/genesis.json
wget -O genesis.json https://raw.githubusercontent.com/quasar-finance/networks/main/quasar-1/definitive-genesis.json --inet4-only
mv genesis.json ~/.quasarnode/config
Set minimum gas prices
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.01ibc\/0471F1C4E7AFD3F07702BEF6DC365268D64570F7C1FDC98EA6098DD6DE59817B,0.01ibc\/FA0006F056DB6719B8C16C551FC392B62F5729978FC0B125AC9A432DBB2AA1A5,0.01ibc\/FA7775734CC73176B7425910DE001A1D2AD9B6D9E93129A5D0750EAD13E4E63A\"/" ~/.quasarnode/config/app.toml
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
Set Peers
PEERS=298e0e1faf8a5da43514cc2908d2908658e732a0@38.146.3.148:18256,49b72b4c79d589955a5004797b45ee306da6a889@143.42.237.237:26656,631775a6e058b5dfca4c68dfb3afec5126301c1b@51.75.146.179:8090,b417b1e3125ad895a280999f0749bca3f871bfd2@65.21.193.117:8090,771659b9205187f9094f894c65d29effa79fdd2c@18.156.191.84:26656,d9bfa29e0cf9c4ce0cc9c26d98e5d97228f93b0b@quasar.rpc.kjnodes.com:48656,5e02509b0aea383251559cb5ee36f4143b8f2d8d@20.7.139.229:26656,cd460ad2c3bc64e74a44f0796ac23cf4f4ed2a04@23.111.23.236:26656,e62ce06e60a986ed04d2e080876a41e3b57a5304@93.190.141.218:26656,5a111b281852be31838ecf1202e59981e618355e@89.116.31.95:18256,d11f867df7e498de0835e2d1b5bc34334c7337d1@65.109.31.114:2490,1369d544be2680e031b57f30a8d18cbe8b17a8ef@54.38.73.121:26656,6f9e244b6e225241c02b235f700c2b0788da982d@148.113.159.22:18256,240c09f5d91d2c252cf29faa1a88aebd563d2561@57.128.144.247:26656,f2e7f8af9e5f72bcde83a8bc0ca05aded6d51a5e@103.180.28.199:26656,8f74699ec25e0ab5a60911e21135a9a330da8399@50.18.180.161:26656,a14a40a5c83d4226fa1f902a8f488fd828336ba4@15.235.115.156:10005,982e80ee53fedcb54a19d5f0dba154a0c1aedc2a@3.34.113.161:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.quasarnode/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="quasar node"
[Service]
User=USER
ExecStart=$(which quasarnoded) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start quasar.service | journalctl -u quasar.service -f