aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-26 16:23:31 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-26 16:23:31 +0100
commit55bec1f03db039e03bfccec24c88ff08b15b6381 (patch)
tree308a12af39b884c63eeec58aa26e076f2e622de3 /src/cryptonote_core/tx_pool.h
parentMerge pull request #2311 (diff)
downloadmonero-55bec1f03db039e03bfccec24c88ff08b15b6381.tar.xz
rpc: add a new RPC to get current txpool backlog (sizes and fees)
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 47a41d070..6414620c9 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 (size, fee, receive time) for all transaction in the pool
+ *
+ * @param txs return-by-reference that data
+ */
+ void get_transaction_backlog(std::vector<tx_backlog_entry>& backlog) const;
+
+ /**
* @brief get a summary statistics of all transaction hashes in the pool
*
* @param stats return-by-reference the pool statistics