Recently, Ethereum Mainnet miners increased block gas limit up to 12.5M gas/block (https://ethstats.net/). To keep smart contracts functionality of xDai compatible with ETH, we propose to increase block gas limits in xDai as well.
Please, follow these steps to update the limit on your validator node.
Connect to your validator node.
Create a backup copy of current version of OpenEthereum config
sudo cp -a /home/validator/node.toml /home/validator/node.toml.bkp
- Check that backup is created
you should see
node.toml.bkp in the list
- Open config file in your favorite text editor (I use
nanohere as an example)
sudo nano /home/validator/node.toml
- Look for
gas_floor_targetconfiguration option, it should be in the
miningsection of the file:
... [mining] ... gas_floor_target = "10000000" ...
Change the value from
Save the file and exit (in
nano: press CTRL+X and confirm YENTER)
Restart parity service and netstat agent
sudo systemctl restart poa-parity && sleep 10 && sudo systemctl restart poa-netstats
Check in netstats (https://dai-netstat.poa.network) that your node is “green” and in sync with others.
In case something goes wrong you should be able to rollback by restoring original configuration file from the backup
sudo cp -a /home/validator/node.toml.bkp /home/validator/node.toml sudo systemctl restart poa-parity && sleep 10 && sudo systemctl restart poa-netstats