Speedup print_pool_stats

Since we're just counting txs, there's no reason to deserialize all the blobs.
This commit is contained in:
Howard Chu
2017-05-31 19:11:56 +01:00
parent 8fbbefb8db
commit 5414970dcd
8 changed files with 112 additions and 34 deletions
+6
View File
@@ -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);