POA Forum

[Proposal] Increase block gas limit to 10M

Dear @poa-validators of both Sokol and Core networks

Recently, miners of ethereum network increased block gas limit up to 10M gas/block (https://ethstats.net/). To keep smart contracts functionality of Sokol and Core compatible with ETH, we propose to increase block gas limits in our networks as well.

If you agree, you can follow these steps to update the limit on your sokol and core validator nodes.

  1. connect to your sokol and/or core validator node.
  2. create a backup copy of current version of parity config
sudo cp -a /home/validator/node.toml /home/validator/node.toml.bkp
  1. check that backup is created
ls /home/validator

you should see node.toml.bkp in the list
3. open config file in your favorite text editor (I use nano here as an example)

sudo nano /home/validator/node.toml
  1. look for gas_floor_target configuration option, it should be in the mining section of the file:
...
[mining]
...
gas_floor_target = "8000000"
...
  1. change the value from "8000000" to "10000000"
  2. save the file and exit (in nano: press CTRL+X and confirm YENTER)
  3. restart parity service and netstat agent
sudo systemctl restart poa-parity && sleep 10 && sudo systemctl restart poa-netstats 
  1. check in netstats (https://core-netstat.poa.network and/or https://sokol-netstat.poa.network) that your node is “green” and in sync with others
  2. 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 
3 Likes

Hello validators,

@ajkagy (Adam Kagy)
@irvinxyz (Irvin Cardenas)
@1proof (Jim O’Regan)
@jlegassic (John H. LeGassic)
@johndangerstorey (John D. Storey)
@igkirill (Kiryl Ihnatsyeu)
@kristina (Kristina Yevseyeva)
@Micwebnet (Michael Milirud)
@oxanakunets (Oxana Kunets)
@pchen23 (Xiaobo Chen)

The validators from this list still haven’t updated their node.toml file, so the block gas limit in Sokol and Core networks is fluctuating in the range from 8000000 to 8039125.

Please, update your node.toml following the above instruction for your Sokol and Core nodes to increase block gas limit to 10M. We need that to keep smart contracts functionality of Sokol and Core compatible with Ethereum.

1 Like

How does this affect compatibility with the Ethereum Mainnet? I assume the goal will be to increase the POA Core Network Gas limit as well once tested on Sokol. Could you please provide the current block gas limit on the Ethereum Network, the difference (if any) between current and proposed Sokol block gas limit, and explain the goal of increasing block gas limit on Sokol? Thanks very much!

The block gas limit was increased from 8M to 10M on Ethereum Mainnet in September 2019: https://etherscan.io/chart/gaslimit

How does this affect compatibility with the Ethereum Mainnet?

For example, some contract deployed both on Sokol/Core and Mainnet may assume that block gas limit is 10M. On Mainnet the limit is currently 10M, but on Sokol/Core the limit is 8M, so such a contract will work fine on Mainnet, but won’t work on Sokol/Core (until we align the limit with Mainnet).

So, to keep POA Core and POA Sokol compatible with Mainnet, the block gas limit should also be increased on Core and Sokol from 8M to 10M.

2 Likes

Updated block gas limit to 10 Million on POA Core and Valdiator nodes. Thanks for the excellent response!

1 Like

@ajkagy @1proof @jlegassic @pchen23

Thanks for updating your node.toml.

@irvinxyz @johndangerstorey @igkirill @kristina @Micwebnet @oxanakunets

Just a quick reminder :arrow_up:

@kristina - you have updated Sokol config, but Core node still has an old config.

@igkirill - you have updated Core config, but Sokol still needs updating.

Updated Sokol and Core node.toml with

gas_floor_target = “10000000”

Best, Michael

1 Like