Problem: I've upgraded my geth node to the latest version (1.9.0-unstable). The block gasLimit of the node is fixed at 5000:
eth.getBlock("latest").gasLimit
5000
When I try to send a transaction, I get the following error:
Error: exceeds block gas limit
Attempted fixes: I have tried to alter the default gasLimit value in the genesis.json
:
"gasLimit": "0xffffffff"
From geth node command line option:
--targetgaslimit '9000000000000'
Point to note: On previous versions, i.e, before upgrading, the block gasLimit returned by the node was much higher and it let me deploy contracts and perform transactions.
eth.getBlock("latest").gasLimit
4286582786