diff --git a/crates/transaction-pool/src/metrics.rs b/crates/transaction-pool/src/metrics.rs index d61816831294..c75e3403cbd5 100644 --- a/crates/transaction-pool/src/metrics.rs +++ b/crates/transaction-pool/src/metrics.rs @@ -106,4 +106,8 @@ pub struct AllTransactionsMetrics { pub(crate) all_transactions_by_all_senders: Gauge, /// Number of blob transactions nonce gaps. pub(crate) blob_transactions_nonce_gaps: Counter, + /// The current blob base fee + pub(crate) blob_base_fee: Gauge, + /// The current base fee + pub(crate) base_fee: Gauge, } diff --git a/crates/transaction-pool/src/pool/txpool.rs b/crates/transaction-pool/src/pool/txpool.rs index 3e22bb9ca99b..a51cdc44ee4c 100644 --- a/crates/transaction-pool/src/pool/txpool.rs +++ b/crates/transaction-pool/src/pool/txpool.rs @@ -982,9 +982,13 @@ impl AllTransactions { } = block_info; self.last_seen_block_number = last_seen_block_number; self.last_seen_block_hash = last_seen_block_hash; + self.pending_fees.base_fee = pending_basefee; + self.metrics.base_fee.set(pending_basefee as f64); + if let Some(pending_blob_fee) = pending_blob_fee { self.pending_fees.blob_fee = pending_blob_fee; + self.metrics.blob_base_fee.set(pending_blob_fee as f64); } }