Commit 2c24e652 authored by George Knee's avatar George Knee Committed by GitHub

txmgr: reinstate fee metrics (#12369)

parent fb7f306e
...@@ -891,6 +891,10 @@ func (m *SimpleTxManager) SuggestGasPriceCaps(ctx context.Context) (*big.Int, *b ...@@ -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) 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 // Enforce minimum base fee and tip cap
minTipCap := m.cfg.MinTipCap.Load() minTipCap := m.cfg.MinTipCap.Load()
minBaseFee := m.cfg.MinBaseFee.Load() minBaseFee := m.cfg.MinBaseFee.Load()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment