aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-17 17:55:32 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-17 17:55:32 +0200
commit429930534df43b8bef46a4a39dbfbc3d3b5939b0 (patch)
tree0280220db27a66d12d16e3b42a003cebab00177a /src/daemon/command_server.cpp
parentMerge pull request #5182 (diff)
parentdaemon: new mining_status command (diff)
downloadmonero-429930534df43b8bef46a4a39dbfbc3d3b5939b0.tar.xz
Merge pull request #5185
59478c80 daemon: new mining_status command (moneromooo-monero)
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 e986d4d95..94e4a8bf1 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -113,6 +113,11 @@ t_command_server::t_command_server(
, "Stop mining."
);
m_command_lookup.set_handler(
+ "mining_status"
+ , std::bind(&t_command_parser_executor::mining_status, &m_parser, p::_1)
+ , "Show current mining status."
+ );
+ m_command_lookup.set_handler(
"print_pool"
, std::bind(&t_command_parser_executor::print_transaction_pool_long, &m_parser, p::_1)
, "Print the transaction pool using a long format."