Skip to main content

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.

Balancing Gas Fees

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.

Default Gas Price

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.

info

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.

info

Erigon and Besu clients adjust their minimum gas fee based on the network's gas price dynamically without further redo.

1. Stop Node Operation: Depending on your setup method, there are different ways to stop your node to adjust configurations.

cd <lukso-working-directory>
lukso stop
info

Exchange <lukso-working-directory> with the path of the node folder.

Force Client Shutdown
sudo pkill geth

2. Adjust Gas Price: Modify the default network configuration of Geth using your preferred editor.

cd <lukso-working-directory>/configs/<network>
vim geth/geth.toml
info

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.

cd <lukso-working-directory>
lukso start --checkpoint-sync
info

Exchange <lukso-working-directory> with the path of the node folder.

After the clients were started, verify that their services are still up.

sudo lukso status