From b8b01b1ccc99e1e0bb8232606c5c512190e79a01 Mon Sep 17 00:00:00 2001 From: cong-or Date: Thu, 7 Dec 2023 21:47:53 +0000 Subject: [PATCH] refactor(misleading rejected tx): expired txs --- jormungandr/src/fragment/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jormungandr/src/fragment/pool.rs b/jormungandr/src/fragment/pool.rs index bf7ff22f38..e09a83afed 100644 --- a/jormungandr/src/fragment/pool.rs +++ b/jormungandr/src/fragment/pool.rs @@ -301,7 +301,7 @@ impl Pool { let tip = self.tip.get_ref().await; let block_date = get_current_block_date(&tip); let fragment_ids = self.pool.remove_expired_txs(block_date); - self.metrics.add_tx_rejected_cnt(fragment_ids.len()); + self.logs.modify_all( fragment_ids, FragmentStatus::Rejected {