Changing the Validator Config File
Last updated
Last updated
To change parameters of the validator client you have to change the config file of your validator node.
In the host, make sure you have root access and go into the config folder
Now you can edit the parity-signing.toml file that should look similar to this:
Most parameters should not be changed. But there are several parameters that can be adapted.
If your node is having trouble syncing after a client update, restarting the node, or an unplanned outage, you can speed up the syncing process by enabling warp sync:
Under [network] change: warp = true
Restart docker container: docker-compose up -d
For more information, see https://openethereum.github.io/Warp-Sync
The minimum gas price defines the lowest price that you allow to be paid for a transaction in Wei/Gas to still be included into a block by your validator node. Every transaction that has a gas price below that will be ignored. What price to set should depend largely on the transaction volume at the current moment. Every validator can choose this parameter individually. If it is too low, there is little spam protection and spammers can just fill up the blocks for little cost. If it is too high, it unjustifiably increases the price per transaction and might deter usage.
usd_per_tx defines the amount of USD to be paid for a basic transaction of sending tokens. The minimum gas price is set accordingly.
usd_per_eth defines the USD value of one token.
price_update_period defines the time that is allowed to pass between each gas price update. T may be daily, hourly, a number of seconds, or a time string of the form "2 days", "30 minutes" etc.
min_gas_price defines the minimum gas price in Wei/Gas and overrides usd_per_tx.
Validators can choose the size of the blocks and thereby the number of transactions to include in a block. The bigger the blocks, the higher the transaction throughput. But if the block is too big, executing all transactions in that block might create problems with latency. Therefore the EWF will advise on a target blockgas limit. Once the limit is changed in the config file it will slowly increase until it has reached the defined limit. If validators do not agree on a limit, it will increase and decrease depending on who proposed the block.
gas_cap defines the absolute maximum amount of gas that will be allowed in a block depending on the transaction volume.
gas_floor_target defines the block size that the validator node targets when creating a new block.
tx_gas_limit defines the maximum gas amount that is allowed for a single transaction.
You can read about all possible configurations here: https://openethereum.github.io/Configuring-OpenEthereum.html
To restart the validator node, run
The parity client should now be running with the new configurations.