core, wallet: faster tx pool scanning

Includes a new RPC to get tx pool hashes fast.
This commit is contained in:
moneromooo-monero
2017-03-22 18:03:23 +00:00
parent f065234b71
commit 558cfc31ca
8 changed files with 166 additions and 104 deletions
+7 -1
View File
@@ -1036,7 +1036,13 @@ namespace cryptonote
m_mempool.get_transactions(txs);
return true;
}
//-----------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------
bool core::get_pool_transaction_hashes(std::vector<crypto::hash>& txs) const
{
m_mempool.get_transaction_hashes(txs);
return true;
}
//-----------------------------------------------------------------------------------------------
bool core::get_pool_transaction(const crypto::hash &id, transaction& tx) const
{
return m_mempool.get_transaction(id, tx);