11.6 Gas Price Configuration
Within the network configuration files, validators can adjust the minimum gas price for transactions they accept to propose blocks to the network. The minimum gas price is an individual client setting. Validators can choose the value they desire for block approval depending on the current network occupation.
If most of the network accepts transactions with a small gas price, overall fees will remain lower. However, if the gas price is too high, the validator will propose empty blocks without transaction fees. As the network throughput rises, these values should be adjusted.
The gas price mainly causes issues for Geth, as the execution client is using a strict default value that must be overwritten. The LUKSO Network Configuration was recently updated to a base gas price of 0.001 Gwei for Geth Execution Clients. Further details can be found on the Configuration Updates of the 🏛️ Archive section.
The following steps are performed on your 📟 node server.
Adjusting the Gas Price
If you are running the Geth execution client and experience block reward issues, reduce the minimum accepted gas fee.
Erigon and Besu clients adjust their minimum gas fee based on the network's gas price dynamically without further redo.
- 👾 LUKSO CLI
- 🎨 Dappnode
- 🐳 Docker Image
- 🗂️ Custom Setup
1. Stop Node Operation: Depending on your setup method, there are different ways to stop your node to adjust configurations.
- LUKSO CLI
- Service Automation
cd <lukso-working-directory>
lukso stop
Exchange <lukso-working-directory>
with the path of the node folder.
sudo systemctl stop lukso-validator
Force Client Shutdown
- Geth
- Erigon
- Nethermind
- Besu
- Teku
- Nimbus-Eth2
- Lighthouse
- Prysm
sudo pkill geth
sudo pkill erigon
nethermind --version
besu --version
sudo pkill teku
sudo pkill nimbus_beacon_node
sudo pkill nimbus_validator_client
sudo pkill lighthouse
The Lighthouse client uses a single binary for both the consensus and validator processes.
sudo pkill prysm
sudo pkill validator
2. Adjust Gas Price: Modify the default network configuration of Geth using your preferred editor.
- Vim
- Nano
cd <lukso-working-directory>/configs/<network>
vim geth/geth.toml
cd <lukso-working-directory>/configs/<network>
nano geth/geth.toml
Exchange <lukso-working-directory>
and <network>
with the path of the node folder and the network type.
Change the regular gas price setting to your preferred or the currently recommended one.
# Regular Value
GasPrice = 1000000000 # 1 Gwei
# Updated Value
GasPrice = 1000000 # 0.001 Gwei
Save the file and exit the editor.
3. Restart the Node: Depending on your setup, there are different ways to start your node with the updated configuration.
- LUKSO CLI Node
- LUKSO CLI Validator
- Service Automation
cd <lukso-working-directory>
lukso start --checkpoint-sync
Exchange <lukso-working-directory>
with the path of the node folder.
cd <lukso-working-directory>
lukso start --validator --transaction-fee-recipient "<your-fee-recipient-address>" --checkpoint-sync
The following properties need to be exchanged:
<lukso-working-directory>
with the path of the node folder<your-fee-recipient-address>
with the wallet address receiving staking profits
sudo systemctl start lukso-validator
After the clients were started, verify that their services are still up.
sudo lukso status
1. Stop Node Operation: Stop the execution and consensus client within the Node Operation View.
2. Navigate to Staker Menu: Open the LUKSO Stakers menu and move into the Lukso Geth Package.
3. Adjust Gas Price: Navigate to the Configs window and add the gas price flag in the EXTRA_OPTS field.
--miner.gasprice 1000000
The above value represents the currently recommended gas price of 0.001 Gwei.
4. Restart the Node: Restart the execution and consensus client within the Node Operation View.
1. Stop Node Operation: Stop the docker containers for both execution and consensus clients.
2. Adjust Gas Price: Open the docker-compose.yml file of Geth, adjust the gas price value, and safe the file.
--miner.gasprice 1000000
The above value represents the currently recommended gas price of 0.001 Gwei.
3. Restart the Node: Restart the docker containers for execution and consensus clients.
1. Stop Node Operation: Stop the execution and consensus services.
- File Configuration
- Flag Custumization
2. Adjust Gas Price: Adjusting the geth.toml file within your setup using your preferred text editor.
- Vim
- Nano
vim geth/geth.toml
nano geth/geth.toml
Change the regular gas price setting to your preferred or the currently recommended one.
# Regular Value
GasPrice = 1000000000 # 1 Gwei
# Updated Value
GasPrice = 1000000 # 0.001 Gwei
Save the file and exit the editor.
3. Restart the Node: Restart the execution and consensus services.
2. Custom Restarte: Restart the Geth service and attach a customization flag for your gasprice setting.
--miner.gasprice 1000000
The above value represents the currently recommended gas price of 0.001 Gwei.