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/cryptonote_core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cryptonote_core/cryptonote_core.cpp') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 21b0b4ceb..2b3d09c45 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1046,6 +1046,12 @@ namespace cryptonote return true; } //----------------------------------------------------------------------------------------------- + bool core::get_pool_transaction_stats(struct txpool_stats& stats) const + { + m_mempool.get_transaction_stats(stats); + return true; + } + //----------------------------------------------------------------------------------------------- bool core::get_pool_transaction(const crypto::hash &id, cryptonote::blobdata& tx) const { return m_mempool.get_transaction(id, tx); -- cgit v1.2.3