Add miner_setGasLimit (#23175)

* Add miner_setGasLimit

Format copied from miner_setGasPrice

* Update docs/_rpc/ns-miner.md

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>

* Update docs/_rpc/ns-miner.md

Co-authored-by: Tim Beiko <t.beiko23@gmail.com>

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
pull/23209/head
Tim Beiko 3 years ago committed by GitHub
parent 5fbb98097f
commit c0b08a579a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      docs/_rpc/ns-miner.md

@ -70,3 +70,13 @@ Sets the etherbase, where mining rewards will go.
| Go | `miner.SetEtherbase(common.Address) bool` |
| Console | `miner.setEtherbase(address)` |
| RPC | `{"method": "miner_setEtherbase", "params": [address]}` |
### miner_setGasLimit
Sets the gas limit the miner will target when mining. Note: on networks where EIP-1559 is activated, this should be set to twice what you want the gas target (i.e. the effective gas used on average per block) to be.
| Client | Method invocation |
|:--------|-------------------------------------------------------------|
| Go | `miner.SetGasLimit(number *rpc.HexNumber) bool` |
| Console | `miner.SetGasLimit(number)` |
| RPC | `{"method": "miner_setGasLimit", "params": [number]}` |

Loading…
Cancel
Save