eth, miner: add RPC method to modify miner gaslimit (pre london: ceiling) (#23134)

This commit is contained in:
Martin Holst Swende
2021-07-06 10:35:39 +02:00
committed by GitHub
parent 13bc9c0c6e
commit d21a069619
4 changed files with 24 additions and 0 deletions

View File

@ -244,6 +244,12 @@ func (w *worker) setEtherbase(addr common.Address) {
w.coinbase = addr
}
func (w *worker) setGasCeil(ceil uint64) {
w.mu.Lock()
defer w.mu.Unlock()
w.config.GasCeil = ceil
}
// setExtra sets the content used to initialize the block extra field.
func (w *worker) setExtra(extra []byte) {
w.mu.Lock()