mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix makeHeaders using unpopulated parent
This commit is contained in:
parent
49bf257ce5
commit
9fa1556dff
1 changed files with 3 additions and 3 deletions
|
|
@ -393,7 +393,7 @@ func makeHeaders(config *params.ChainConfig, blocks []simBlock, base *types.Head
|
||||||
if config.IsLondon(overrides.Number.ToInt()) {
|
if config.IsLondon(overrides.Number.ToInt()) {
|
||||||
baseFee = eip1559.CalcBaseFee(config, header)
|
baseFee = eip1559.CalcBaseFee(config, header)
|
||||||
}
|
}
|
||||||
header = &types.Header{
|
header = overrides.MakeHeader(&types.Header{
|
||||||
UncleHash: types.EmptyUncleHash,
|
UncleHash: types.EmptyUncleHash,
|
||||||
ReceiptHash: types.EmptyReceiptsHash,
|
ReceiptHash: types.EmptyReceiptsHash,
|
||||||
TxHash: types.EmptyTxsHash,
|
TxHash: types.EmptyTxsHash,
|
||||||
|
|
@ -402,8 +402,8 @@ func makeHeaders(config *params.ChainConfig, blocks []simBlock, base *types.Head
|
||||||
GasLimit: base.GasLimit,
|
GasLimit: base.GasLimit,
|
||||||
//MixDigest: header.MixDigest,
|
//MixDigest: header.MixDigest,
|
||||||
BaseFee: baseFee,
|
BaseFee: baseFee,
|
||||||
}
|
})
|
||||||
res[bi] = overrides.MakeHeader(header)
|
res[bi] = header
|
||||||
}
|
}
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue