Skip to content

Commit 2f1b724

Browse files
committed
fix(op-service/sources): use Prague-aware BlobBaseFee in headerInfo
headerInfo.BlobBaseFee() was still calling eth.CalcBlobFeeCancun() with the raw excessBlobGas value, ignoring the RequestsHash field populated from post-Pectra L1 RPC responses. With Sepolia excessBlobGas ~188-194M, the Cancun formula (UpdateFraction=3338477) produces ~10^24 wei instead of the correct ~10^16 wei from the Prague formula (UpdateFraction=5007716). This is the actual dispatch target when l1_block_info.go calls block.BlobBaseFee() — the concrete type returned by EthClient.InfoByHash is *headerInfo (sources/types.go), not *headerBlockInfo (eth/block_info.go). The prior fix (07c68f9) changed the call site but not the implementation. CalcBlobFeeDefault detects Prague blocks via header.RequestsHash != nil, which is correctly populated from the Alchemy Sepolia RPC response. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 37f7b84 commit 2f1b724

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

op-service/sources/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (h headerInfo) BlobBaseFee() *big.Int {
7474
if h.Header.ExcessBlobGas == nil {
7575
return nil
7676
}
77-
return eth.CalcBlobFeeCancun(*h.Header.ExcessBlobGas)
77+
return eth.CalcBlobFeeDefault(h.Header)
7878
}
7979

8080
func (h headerInfo) ExcessBlobGas() *uint64 {

0 commit comments

Comments
 (0)