Add mempool output to daemon via command and RPC

This is for the "print_pool" command and "get_transaction_pool" RPC
method.

Add mempool's spent key images to the results.
This commit is contained in:
warptangent
2015-04-23 05:13:07 -07:00
parent 41f0a8fe4d
commit b76857f9d9
7 changed files with 107 additions and 17 deletions

View File

@@ -401,10 +401,8 @@ namespace cryptonote
//------------------------------------------------------------------------------------------------------------------------------
bool core_rpc_server::on_get_transaction_pool(const COMMAND_RPC_GET_TRANSACTION_POOL::request& req, COMMAND_RPC_GET_TRANSACTION_POOL::response& res)
{
/*
CHECK_CORE_BUSY();
res.transactions = m_core.transaction_pool_info();
*/
m_core.get_pool_transactions_and_spent_keys_info(res.transactions, res.spent_key_images);
res.status = CORE_RPC_STATUS_OK;
return true;
}