To enable this, initially we need to create our own P2P Zetrix address. We can use our Zetrix wallet to generate the Zetrix address. Alternatively, we can use the "ztx" binary to generate the address by running the following command.
cd /usr/local/ztxchain/bin && ./ztx --create-account
Now we are able to replace our P2P address with the newly generated address. To replace, navigate to the config file (ztx.json), open it using vim or nano editor.
vi /usr/local/ztxchain/config/ztx.json
Change the following P2P and validator section. Copy the "address" to "p2p.address" and "private_key_aes" to "p2p.node_private_key" attribute in the json file.
After replacing the address, you may restart the node by running the following command.
cd /usr/local/ztxchain/scripts && ./ztx restart
Check the node status again to ensure the node is running.
./ztx status
Deploy Validator Node With Dedicated Validator Address
In order to set up a validator node, we need to manually replace the validator address and private key before registering our node and stake at https://validator.zetrix.com/.
To set the validator address and private key, follow the same method as above to generate a new address. Copy the "address" to "ledger.validation_address" and "private_key_aes" to "ledger.validation_private_key" attribute in the configuration json file (ztx.json).