Commit 2f1b724
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments