@@ -89,6 +89,7 @@ type btHeader struct {
89
89
Timestamp uint64
90
90
BaseFeePerGas * big.Int
91
91
WithdrawalsRoot * common.Hash
92
+ ExcessDataGas * big.Int
92
93
}
93
94
94
95
type btHeaderMarshaling struct {
@@ -99,6 +100,7 @@ type btHeaderMarshaling struct {
99
100
GasUsed math.HexOrDecimal64
100
101
Timestamp math.HexOrDecimal64
101
102
BaseFeePerGas * math.HexOrDecimal256
103
+ ExcessDataGas * math.HexOrDecimal256
102
104
}
103
105
104
106
func (t * BlockTest ) Run (snapshotter bool ) error {
@@ -163,18 +165,19 @@ func (t *BlockTest) Run(snapshotter bool) error {
163
165
164
166
func (t * BlockTest ) genesis (config * params.ChainConfig ) * core.Genesis {
165
167
return & core.Genesis {
166
- Config : config ,
167
- Nonce : t .json .Genesis .Nonce .Uint64 (),
168
- Timestamp : t .json .Genesis .Timestamp ,
169
- ParentHash : t .json .Genesis .ParentHash ,
170
- ExtraData : t .json .Genesis .ExtraData ,
171
- GasLimit : t .json .Genesis .GasLimit ,
172
- GasUsed : t .json .Genesis .GasUsed ,
173
- Difficulty : t .json .Genesis .Difficulty ,
174
- Mixhash : t .json .Genesis .MixHash ,
175
- Coinbase : t .json .Genesis .Coinbase ,
176
- Alloc : t .json .Pre ,
177
- BaseFee : t .json .Genesis .BaseFeePerGas ,
168
+ Config : config ,
169
+ Nonce : t .json .Genesis .Nonce .Uint64 (),
170
+ Timestamp : t .json .Genesis .Timestamp ,
171
+ ParentHash : t .json .Genesis .ParentHash ,
172
+ ExtraData : t .json .Genesis .ExtraData ,
173
+ GasLimit : t .json .Genesis .GasLimit ,
174
+ GasUsed : t .json .Genesis .GasUsed ,
175
+ Difficulty : t .json .Genesis .Difficulty ,
176
+ Mixhash : t .json .Genesis .MixHash ,
177
+ Coinbase : t .json .Genesis .Coinbase ,
178
+ Alloc : t .json .Pre ,
179
+ BaseFee : t .json .Genesis .BaseFeePerGas ,
180
+ ExcessDataGas : t .json .Genesis .ExcessDataGas ,
178
181
}
179
182
}
180
183
@@ -283,6 +286,9 @@ func validateHeader(h *btHeader, h2 *types.Header) error {
283
286
if ! reflect .DeepEqual (h .WithdrawalsRoot , h2 .WithdrawalsHash ) {
284
287
return fmt .Errorf ("withdrawalsRoot: want: %v have: %v" , h .WithdrawalsRoot , h2 .WithdrawalsHash )
285
288
}
289
+ if ! reflect .DeepEqual (h .ExcessDataGas , h2 .ExcessDataGas ) {
290
+ return fmt .Errorf ("excessDataGas: want: %v have: %v" , h .ExcessDataGas , h2 .ExcessDataGas )
291
+ }
286
292
return nil
287
293
}
288
294
0 commit comments