aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-04-23 05:13:07 -0700
committerwarptangent <warptangent@inbox.com>2015-04-23 07:04:36 -0700
commitb76857f9d9a8bf45b854e9c3da56b550ade1a7c6 (patch)
treeaead9c8412218045e3de48fe4b98a2bcc0393b67 /src/rpc/core_rpc_server.cpp
parentupdate lmdb64 (diff)
downloadmonero-b76857f9d9a8bf45b854e9c3da56b550ade1a7c6.tar.xz
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.
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 8eeac489d..561161950 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -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;
}