Configuration
Validator Node Settings and Misc. Server Configurations
Last updated
Was this helpful?
Validator Node Settings and Misc. Server Configurations
Last updated
Was this helpful?
app.toml
and config.toml
config.toml
: used to configure the Tendermint
app.toml
: used to configure your app, such as state pruning strategies, telemetry, state sync, gRPC and REST servers configuration
Both files are heavily commented, please refer to them directly to tweak your node.
Open app.toml
and check the current configuration:
The minimum-gas-prices
field inside app.toml
defines the minimum gas price the validator node is willing to accept to process a transaction. Change the setting by running the following command:
Recommended setting: minimum-gas-prices = "0.01uvaga"
Open app.toml
and check the current configuration:
In this file, you can set your pruning strategy by choosing between default
, nothing
, and everything
depending on how much historical state you wish to store.
To reduce hard drive storage, choose everything
or default
.
To run an archival node, chose nothing
. Custom
settings are also possible.
In order to be added to the address book, you need to set your server IP by configuring the external_address
parameter in the config.toml
file. The default P2P port is 26656
.
Open config.toml
and check the newly added IP address in the external_address
field:
If your validator gets jailed, you can fix it with the following command:
Check your validator again to see if your voting power is back:
A validator node must also be unique on the chain, so only a node can sign with its private key. If there is another node with the same private key, this will result in a double signature, and therefore immediately jail your validator.
Validators can submit an unbounding transaction
to remove their staked coins. Once the transaction is processed the staked coins will enter an unbonding period of 21 days.
During the unbonding period, the staked coins will not earn any validator income, but are still susceptible to slashing penalties. After the unbonding period, the coins will be fully released to the wallet where they will once again be available to carry out transactions with.
The 21-day unbonding process assists in the long-term stability of the VagaChain protocol. The unbonding period discourages volatility by locking staked VAGA in the system for at least 21 days.
To perform an unbond transaction
use the follow command:
Install nginx
and allow the 'Nginx Full' rule in your firewall:
Check nginx is running via systemctl:
Which should return:
Proxying your validator's port 26657
to nginx port 80
can then be done by creating a file /etc/nginx/conf.d/<name-of-file>.conf
with the following configurations :
vagachaind
uses several TCP ports for different purposes:
26656
: The default port for the P2P protocol. Use this port to communicate with other nodes. While this port must be open to join a network, it does not have to be open to the public. Validator nodes should configure persistent_peers
and close this port to the public.
26657
: The default port for the RPC protocol. This port is used for querying / sending transactions and must be open to serve queries from vagachaind
. DO NOT open this port to the public unless you are planning to run a public node.
1317
: The default port for Lite Client Daemon (LCD), which can be enabled in ~/.vagachain/config/app.toml
. The LCD provides an HTTP RESTful API layer to allow applications and services to interact with your vagachaind
instance through RPC. Check the VagaChain REST API for usage examples. Don't open this port unless you need to use the LCD.
Caution:
Do not open port 26657 to the public unless you plan to run a public node.
Common reasons for your validator being jailed
The most common reason for your validator being jailed is that your validator is out of memory because of bloated syslogs. Running the command df -H
will return the size of the various partitions of your VPS.
is an open source software used for operating high-performance web servers. It allows you to set up reverse proxying on your validator server to improve performance and security.
26660
: The default port for interacting with the database. You can use Promethues to monitor an environment. This port is closed by default.