Just in case anyone would be wondering, here’s how we setup our PundiX validator node (inactive for now), under Ubuntu, while waiting for the team to approve our application…
STEP 1: SETUP THE NODE
We’re assuming ‘root’ is your default logged in user :
git clone --branch release/v0.2.x https://github.com/pundix/pundix.git
cd pundix
make go.sum
make install
wget https://raw.githubusercontent.com/pundix/pundix/main/public/mainnet/genesis.json -O ~/.pundix/config/genesis.json
pundixd config config.toml p2p.seeds 78d3eb3f15a20ab1d567660d35776abe0dee71d0@pundix-mainnet-seed-node-1.pundix.com:26656,3c37c6c42dfd9094117549794299a62d49c122eb@pundix-mainnet-seed-node-2.pundix.com:26656
pundixd config config.toml p2p.persistent_peers 8bd41ea9f8ba7cfee4d19887cab487cdfc1177f4@pundix-mainnet-node-1.pundix.com:26656,6c1738220234a5e1b3caf94403ecd651e9759952@pundix-mainnet-node-2.pundix.com:26656,23abe2346d40f82cf0606e47931e58752f8b9348@pundix-mainnet-node-3.pundix.com:26656,20d275af6d025be144765291db5337ea059cce18@pundix-mainnet-node-4.pundix.com:26656,47f97d7baf028ddfd3b223baab0fa062eae75310@pundix-mainnet-node-5.pundix.com:26656
pundixd init [MONIKER_NAME]
wget https://px-mainnet.s3.amazonaws.com/pundix-snapshot-mainnet-2023-01-16.tar.gz
tar -xzvf pundix-snapshot-mainnet-2023-01-17.tar.gz -C ~/.pundix/
(without the brackets)
Then setup the service:
sudo apt install nano
nano /etc/systemd/system/pundixd.service
Add the following inside the file :
[Unit]
Description=PundiX Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root
ExecStart=/root/go/bin/pundixd start --home /root/.pundix
Restart=on-failure
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
Then:
sudo systemctl daemon-reload
sudo systemctl enable pundixd
sudo systemctl start pundixd
Then run the following command every 5 minutes until ‘catch_up’ gets ‘false’ in the result :
pundixd status
STEP 2: SETUP THE VALIDATOR KEY
Solution 1: If you already have a FX validator and want to reuse the same seedphrase, run :
pundixd keys add "[KEY_NAME]" --algo secp256k1 --coin-type 118 --recover --keyring-backend file
(without the brackets) …and enter your seedphrase and your keyring (twice).
Solution 2: Otherwise, run this to create a new wallet for your PundiX validator :
pundixd keys add "[KEY_NAME]" --algo secp256k1 --coin-type 118 --keyring-backend file
(without the brackets) …and enter your keyring (twice).
Note somewhere safe your new seedphrase and keyring password : they won’t be recoverable…
In both cases:
Make sure your key is correctly added to the local database:
pundixd keys list --keyring-backend file
…and take note of your “px1…” address. This will be your wallet address.
BEFORE PROCEEDING WITH THE NEXT STEP, YOU’D BETTER WAIT FOR THE TEAM TO APPROVE YOUR APPLICATION.
STEP 3: CREATE AND INITIATE THE VALIDATOR
Now, using your f(x)Wallet or any other mean, transfer 101 PUNDIX from the PUNDIX chain to that address. And check they appear in your wallet.
pundixd q bank balances [px1...]
(without the brackets)
You should see your 101PUNDIX under the denom ibc/55367B7B6572631B78A93C66EF9FDFCE87CDE372CC4ED7848DA78C1EB1DCDD78
.
Then run the following command to create your validator:
pundixd tx staking create-validator --chain-id="PUNDIX" --gas="auto" --gas-adjustment=1.5 --gas-prices="2000000000000ibc/55367B7B6572631B78A93C66EF9FDFCE87CDE372CC4ED7848DA78C1EB1DCDD78" --from="[KEY_NAME]" --amount="100ibc/55367B7B6572631B78A93C66EF9FDFCE87CDE372CC4ED7848DA78C1EB1DCDD78" --pubkey=$(pundixd tendermint show-validator) --commission-rate="[YOUR_RATE]" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="100" --moniker="[MONIKER_NAME]" --website="[YOUR_URL]" --details="[YOUR DESCRIPTION]" --keyring-backend file
…remove the brackets and replace KEY_NAME with your previously created key name, YOUR_RATE with 0.05 for 5% commission fee for example, MONIKER_NAME with FrenchXCore for example, YOUR_URL with x.com
Take note of your pxvaloper1… address to avoid searching it later on.
Wait a couple minutes and check over the Starscan Explorer that your validator was created.
If it appears the PUNDIX were not self delegated, run the following command:
pundixd tx staking delegate [YOUR_VALIDATOR_ADDRESS] 100000000000000000000ibc/55367B7B6572631B78A93C66EF9FDFCE87CDE372CC4ED7848DA78C1EB1DCDD78 --gas="auto" --gas-adjustment=1.5 --gas-prices="2000000000000ibc/55367B7B6572631B78A93C66EF9FDFCE87CDE372CC4ED7848DA78C1EB1DCDD78" --from="[YOUR_KEY_NAME]" --keyring-backend file
And you should be good to go…
Regards,
@FrenchXCore