mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
fix(event-watcher): fetching blob base fee
This commit is contained in:
@@ -137,8 +137,9 @@ func (w *L1WatcherClient) FetchBlockHeader(blockHeight uint64) error {
|
||||
}
|
||||
|
||||
var blobBaseFee uint64
|
||||
if excess := block.ExcessBlobGas; excess != nil {
|
||||
blobBaseFee = misc.CalcBlobFee(*excess).Uint64()
|
||||
if block.ExcessBlobGas != nil && block.BlobGasUsed != nil {
|
||||
parentExcessBlobGas := misc.CalcExcessBlobGas(*block.ExcessBlobGas, *block.BlobGasUsed)
|
||||
blobBaseFee = misc.CalcBlobFee(parentExcessBlobGas).Uint64()
|
||||
}
|
||||
|
||||
l1Block := orm.L1Block{
|
||||
|
||||
Reference in New Issue
Block a user