Skip to content

Commit

Permalink
txmgr: reinstate fee metrics (#12369)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoknee authored Oct 8, 2024
1 parent fb7f306 commit 2c24e65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions op-service/txmgr/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,10 @@ func (m *SimpleTxManager) SuggestGasPriceCaps(ctx context.Context) (*big.Int, *b
return nil, nil, nil, fmt.Errorf("failed to get gas price estimates: %w", err)
}

m.metr.RecordTipCap(tip)
m.metr.RecordBaseFee(baseFee)
m.metr.RecordBlobBaseFee(blobFee)

// Enforce minimum base fee and tip cap
minTipCap := m.cfg.MinTipCap.Load()
minBaseFee := m.cfg.MinBaseFee.Load()
Expand Down

0 comments on commit 2c24e65

Please sign in to comment.