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 01a14b8a0..3d016c90c 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -287,9 +287,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)
}