diff options
| author | Howard Chu <hyc@symas.com> | 2017-05-31 19:11:56 +0100 |
|---|---|---|
| committer | Howard Chu <hyc@symas.com> | 2017-06-01 17:34:03 +0100 |
| commit | 5414970dcd05e77a8734f142969c1c805f056f52 (patch) | |
| tree | e102846c2c56b8833156fc92e920411bdb1fbcf1 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 8fbbefb8db3258e20f09efde1060e7a147a8887c (diff) | |
| download | monzero-core-5414970dcd05e77a8734f142969c1c805f056f52.tar.gz monzero-core-5414970dcd05e77a8734f142969c1c805f056f52.tar.xz monzero-core-5414970dcd05e77a8734f142969c1c805f056f52.zip | |
Speedup print_pool_stats
Since we're just counting txs, there's no reason to deserialize all the blobs.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
