[Ethereum] How to set default gas limit for the custom private network

gasprivateremix

I've connected to my custom private ethereum network in remix with web3 provider. Everything was fine, account balance, and address was retrieved successfully.
But I don't know why, but I could not set gas limit for my transaction (e.g. contract deploy). The remix has gas limit issue. Here

Is there any way to increase default gas limit for my custome private network? Because I cannot send any transactions (i.e. contract deploy, call function, etc.) except normal ETH send transaction because of the gas limit is too low.

Best Answer

On a private blockchain you set the default gas limit in the genesis file.

After that you can play on gas limit by mining with geth specifying a target gas limit :

How to increase gas limit in block using geth?

Related Topic