diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-10-11 10:30:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-10-11 10:30:53 +0200 |
commit | 3db0ebafe54044fea13d8d5f09948210855fbae6 (patch) | |
tree | bb4a186e6ef10ec4aa836887d4187f4f4f510572 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #1205 (diff) | |
parent | print_coinbase_tx_sum now breaks output into fee and emission components (diff) | |
download | monero-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/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 700019250..e8b2d5cb1 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1266,6 +1266,14 @@ namespace cryptonote return true; } //------------------------------------------------------------------------------------------------------------------------------ + bool core_rpc_server::on_get_coinbase_tx_sum(const COMMAND_RPC_GET_COINBASE_TX_SUM::request& req, COMMAND_RPC_GET_COINBASE_TX_SUM::response& res, epee::json_rpc::error& error_resp) + { + std::pair<uint64_t, uint64_t> amounts = m_core.get_coinbase_tx_sum(req.height, req.count); + res.emission_amount = amounts.first; + res.fee_amount = amounts.second; + return true; + } + //------------------------------------------------------------------------------------------------------------------------------ bool core_rpc_server::on_out_peers(const COMMAND_RPC_OUT_PEERS::request& req, COMMAND_RPC_OUT_PEERS::response& res) { // TODO |