From 5414970dcd05e77a8734f142969c1c805f056f52 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 31 May 2017 19:11:56 +0100 Subject: Speedup print_pool_stats Since we're just counting txs, there's no reason to deserialize all the blobs. --- src/cryptonote_core/tx_pool.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/cryptonote_core/tx_pool.h') diff --git a/src/cryptonote_core/tx_pool.h b/src/cryptonote_core/tx_pool.h index a2ab76959..1858ccdd8 100644 --- a/src/cryptonote_core/tx_pool.h +++ b/src/cryptonote_core/tx_pool.h @@ -242,6 +242,13 @@ namespace cryptonote */ void get_transaction_hashes(std::vector& txs) const; + /** + * @brief get a summary statistics of all transaction hashes in the pool + * + * @param stats return-by-reference the pool statistics + */ + void get_transaction_stats(struct txpool_stats& stats) const; + /** * @brief get information about all transactions and key images in the pool * -- cgit v1.2.3