This commit is contained in:
Giulio 2024-10-11 11:42:41 +02:00
parent 7b825fe871
commit abe247438d

View file

@ -124,8 +124,7 @@ func (miner *Miner) SetExtra(extra []byte) error {
// For pre-1559 blocks, it sets the ceiling.
func (miner *Miner) SetGasCeil(ceil uint64) {
miner.confMu.Lock()
miner.config.GasCeil = new(uint64)
*miner.config.GasCeil = ceil
miner.config.GasCeil = &ceil
miner.confMu.Unlock()
}