consensus, core/typer: add 4844 excessDataGas to header, tie it to Cancun (#27046)

This commit is contained in:
Péter Szilágyi
2023-04-04 10:02:50 +03:00
committed by GitHub
parent 9b1a82c600
commit 91faf2c559
4 changed files with 18 additions and 1 deletions
+3
View File
@@ -85,6 +85,9 @@ type Header struct {
// WithdrawalsHash was added by EIP-4895 and is ignored in legacy headers.
WithdrawalsHash *common.Hash `json:"withdrawalsRoot" rlp:"optional"`
// ExcessDataGas was added by EIP-4844 and is ignored in legacy headers.
ExcessDataGas *big.Int `json:"excessDataGas" rlp:"optional"`
/*
TODO (MariusVanDerWijden) Add this field once needed
// Random was added during the merge and contains the BeaconState randomness