miner/worker.go¶
| Type | MOD |
| Upstream Lines | 641 |
| Changed | +2 -2 |
Rename IsLondon→IsEIP1559 in the worker so block sealing honours Mystique (London without EIP-1559)
diff --git a/miner/worker.go b/miner/worker.go
index 42e369502..eb9692b7c 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -291,9 +291,9 @@ func (miner *Miner) prepareWork(ctx context.Context, genParams *generateParams,
header.MixDigest = genParams.random
}
// Set baseFee and GasLimit if we are on an EIP-1559 chain
- if miner.chainConfig.IsLondon(header.Number) {
+ if miner.chainConfig.IsEIP1559(header.Number) {
header.BaseFee = eip1559.CalcBaseFee(miner.chainConfig, parent)
- if !miner.chainConfig.IsLondon(parent.Number) {
+ if !miner.chainConfig.IsEIP1559(parent.Number) {
parentGasLimit := parent.GasLimit * miner.chainConfig.ElasticityMultiplier()
header.GasLimit = core.CalcGasLimit(parentGasLimit, miner.config.GasCeil)
}