@@ -169,9 +169,10 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
169
169
}
170
170
}
171
171
arbOSVersion := types .DeserializeHeaderExtraInformation (header ).ArbOSFormatVersion
172
+ parentArbOSVersion := types .DeserializeHeaderExtraInformation (parent ).ArbOSFormatVersion
172
173
if sim .chainConfig .IsCancun (header .Number , header .Time , arbOSVersion ) {
173
174
var excess uint64
174
- if sim .chainConfig .IsCancun (parent .Number , parent .Time , arbOSVersion ) {
175
+ if sim .chainConfig .IsCancun (parent .Number , parent .Time , parentArbOSVersion ) {
175
176
excess = eip4844 .CalcExcessBlobGas (sim .chainConfig , parent , header .Time )
176
177
}
177
178
header .ExcessBlobGas = & excess
@@ -270,11 +271,11 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
270
271
}
271
272
header .Root = sim .state .IntermediateRoot (true )
272
273
header .GasUsed = gasUsed
273
- if sim .chainConfig .IsCancun (header .Number , header .Time , types . DeserializeHeaderExtraInformation ( header ). ArbOSFormatVersion ) {
274
+ if sim .chainConfig .IsCancun (header .Number , header .Time , arbOSVersion ) {
274
275
header .BlobGasUsed = & blobGasUsed
275
276
}
276
277
var withdrawals types.Withdrawals
277
- if sim .chainConfig .IsShanghai (header .Number , header .Time , types . DeserializeHeaderExtraInformation ( header ). ArbOSFormatVersion ) {
278
+ if sim .chainConfig .IsShanghai (header .Number , header .Time , arbOSVersion ) {
278
279
withdrawals = make ([]* types.Withdrawal , 0 )
279
280
}
280
281
if requests != nil {
0 commit comments