aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-06-01 19:32:37 +0200
committerRiccardo Spagni <ric@spagni.net>2017-06-01 19:32:37 +0200
commitfbfad8ee1bf12c1629e4d32c93e43d69e97442bd (patch)
treee102846c2c56b8833156fc92e920411bdb1fbcf1 /src/cryptonote_core/tx_pool.h
parentMerge pull request #2053 (diff)
parentSpeedup print_pool_stats (diff)
downloadmonero-fbfad8ee1bf12c1629e4d32c93e43d69e97442bd.tar.xz
Merge pull request #2061
5414970d Speedup print_pool_stats (Howard Chu)
Diffstat (limited to 'src/cryptonote_core/tx_pool.h')
-rw-r--r--src/cryptonote_core/tx_pool.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -243,6 +243,13 @@ namespace cryptonote
void get_transaction_hashes(std::vector<crypto::hash>& 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
*
* see documentation on tx_info and spent_key_image_info for more details