print_coinbase_tx_sum now breaks output into fee and emission components

This commit is contained in:
Dion Ahmetaj
2016-10-10 19:55:18 -04:00
parent dd6c44327b
commit 7db29d6903
5 changed files with 30 additions and 10 deletions

View File

@@ -1268,7 +1268,9 @@ namespace cryptonote
//------------------------------------------------------------------------------------------------------------------------------
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)
{
res.amount = m_core.get_coinbase_tx_sum(req.height, req.count);
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;
}
//------------------------------------------------------------------------------------------------------------------------------