Skip to content

Commit bc0dc5b

Browse files
committed
Switch to header deserialization from block context
The value of arbosVersion is actually entirely superfluous, but this way, we create one fewer block context objects.
1 parent 9b1d88a commit bc0dc5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/chain_makers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ func (b *BlockGen) collectRequests(readonly bool) (requests [][]byte) {
315315
statedb = statedb.Copy()
316316
}
317317

318-
blockContext := NewEVMBlockContext(b.header, b.cm, &b.header.Coinbase)
318+
arbosVersion := types.DeserializeHeaderExtraInformation(b.header).ArbOSFormatVersion
319319
// Arbitrum doesn't support Deposit, Withdrawal, or Consolidation requests.
320-
if !b.cm.config.IsArbitrum() && b.cm.config.IsPrague(b.header.Number, b.header.Time, blockContext.ArbOSVersion) {
320+
if !b.cm.config.IsArbitrum() && b.cm.config.IsPrague(b.header.Number, b.header.Time, arbosVersion) {
321321
requests = [][]byte{}
322322
// EIP-6110 deposits
323323
var blockLogs []*types.Log

0 commit comments

Comments
 (0)