0

I am facing this error :

Error: exceeds block gas limit

When i run below command it returns 5000.

web3.eth.getBlock("latest").gasLimit

so as per someone's suggestion 21000 gasLimit is needed to initiate a transaction so i tried to increase it using below command.

sudo geth --rpcapi eth,web3,personal --rpc --networkid=15 --targetgaslimit=47123880

but after above command execution also gasLimit is still same as 5000.

My purpose is to increase gas limit.

Thanks.

  • What gas limit did you set in your genesis? – Raghav Sood Aug 23 '18 at 7:01
  • "gasLimit": "0x8000000"..but i found in somebody answer that you should not change in genesis once initialize it so trying changing using targetgaslimit. – Alien Aug 23 '18 at 7:02
0

To increase the gas limit you have to mine with a node with a target gas limit above the one on the network. Each block you mine will increase the limit a little.

  • ''Each block you mine will increase the limit a little'' but not increasing..that is the question..why? – Alien Aug 23 '18 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.