aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-11 10:49:15 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-11 10:52:41 +0100
commit83bbea4c7f47d05933ec1b5baca2e9724561e49c (patch)
treeacc999b802091f32227e66e677ae483398fe1d93 /src/daemon/command_server.cpp
parentblockchain: remove dead code (diff)
downloadmonero-83bbea4c7f47d05933ec1b5baca2e9724561e49c.tar.xz
Add a is_key_image_spent daemon command and RPC call
Diffstat (limited to 'src/daemon/command_server.cpp')
-rw-r--r--src/daemon/command_server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp
index 65bceff75..047b52c3e 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -85,6 +85,11 @@ t_command_server::t_command_server(
, "Print transaction, print_tx <transaction_hash>"
);
m_command_lookup.set_handler(
+ "is_key_image_spent"
+ , std::bind(&t_command_parser_executor::is_key_image_spent, &m_parser, p::_1)
+ , "Prints whether a given key image is in the spent key images set, is_key_image_spent <key_image>"
+ );
+ m_command_lookup.set_handler(
"start_mining"
, std::bind(&t_command_parser_executor::start_mining, &m_parser, p::_1)
, "Start mining for specified address, start_mining <addr> [threads=1]"