From b2f2291afcee26ed16968929df1edff7b3df7d34 Mon Sep 17 00:00:00 2001 From: Satya Vusirikala Date: Thu, 18 Jul 2024 14:39:16 -0700 Subject: [PATCH] Add more logs --- mempool/src/core_mempool/transaction_store.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mempool/src/core_mempool/transaction_store.rs b/mempool/src/core_mempool/transaction_store.rs index 8b93f3dfb36b2..616cd211feac0 100644 --- a/mempool/src/core_mempool/transaction_store.rs +++ b/mempool/src/core_mempool/transaction_store.rs @@ -599,6 +599,16 @@ impl TransactionStore { last_timeline_id[i] = timeline_id; } let bucket = self.timeline_index.get_bucket(txn.ranking_score); + info!( + "read_timeline: {} {}, time taken: {:?}, before: {:?}, high_time_taken: {}, priority: {}, submitted_by: {}", + address, + sequence_number, + SystemTime::now().duration_since(txn.insertion_info.insertion_time), + Instant::now().duration_since(before.unwrap_or(Instant::now())), + SystemTime::now().duration_since(txn.insertion_info.insertion_time).unwrap() > Duration::from_millis(15), + txn.priority_of_sender.to_string().as_str(), + txn.insertion_info.submitted_by_label(), + ); Mempool::log_txn_latency( &txn.insertion_info, bucket,