aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-11 10:30:52 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-11 10:30:53 +0200
commit3db0ebafe54044fea13d8d5f09948210855fbae6 (patch)
treebb4a186e6ef10ec4aa836887d4187f4f4f510572 /src/daemon/command_server.cpp
parentMerge pull request #1205 (diff)
parentprint_coinbase_tx_sum now breaks output into fee and emission components (diff)
downloadmonero-3db0ebafe54044fea13d8d5f09948210855fbae6.tar.xz
Merge pull request #1204
7db29d6 print_coinbase_tx_sum now breaks output into fee and emission components (Dion Ahmetaj) dd6c443 changed params from start/end index to height/count (Dion Ahmetaj) e95d3f3 attempted to remove whitespace spam (Dion Ahmetaj) 412da63 added print_coinbase_tx_sum option (Dion Ahmetaj)
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 cb54d1966..1418b920f 100644
--- a/src/daemon/command_server.cpp
+++ b/src/daemon/command_server.cpp
@@ -215,6 +215,11 @@ t_command_server::t_command_server(
, std::bind(&t_command_parser_executor::output_histogram, &m_parser, p::_1)
, "Print output histogram (amount, instances)"
);
+ m_command_lookup.set_handler(
+ "print_coinbase_tx_sum"
+ , std::bind(&t_command_parser_executor::print_coinbase_tx_sum, &m_parser, p::_1)
+ , "Print sum of coinbase transactions (start height, block count)"
+ );
}
bool t_command_server::process_command_str(const std::string& cmd)