core: add BeaconRoot to header in GenerateChain (#27974)

Fixes an error in tests of internal/ethapi.
This commit is contained in:
Felix Lange
2023-08-22 18:29:17 +02:00
committed by GitHub
parent 8d2492982b
commit 4c7053baf1
13 changed files with 15 additions and 14 deletions
+1
View File
@@ -411,6 +411,7 @@ func makeHeader(chain consensus.ChainReader, parent *types.Block, state *state.S
excessBlobGas := eip4844.CalcExcessBlobGas(parentExcessBlobGas, parentBlobGasUsed)
header.ExcessBlobGas = &excessBlobGas
header.BlobGasUsed = new(uint64)
header.BeaconRoot = new(common.Hash)
}
return header
}