aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorDion Ahmetaj <Dion Ahmetaj>2016-10-10 19:55:18 -0400
committerDion Ahmetaj <Dion Ahmetaj>2016-10-10 19:55:18 -0400
commit7db29d6903fe24eabaaf3b3afc364b6924d5b463 (patch)
treed754fd808175986db9a77aec743d89b7fced914b /src/daemon
parentchanged params from start/end index to height/count (diff)
downloadmonero-7db29d6903fe24eabaaf3b3afc364b6924d5b463.tar.xz
print_coinbase_tx_sum now breaks output into fee and emission components
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/rpc_command_executor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index bf154597c..db0d0a6e4 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -1299,7 +1299,9 @@ bool t_rpc_command_executor::print_coinbase_tx_sum(uint64_t height, uint64_t cou
tools::msg_writer() << "Sum of coinbase transactions between block heights ["
<< height << ", " << (height + count) << ") is "
- << cryptonote::print_money(res.amount);
+ << cryptonote::print_money(res.emission_amount + res.fee_amount) << " "
+ << "consisting of " << cryptonote::print_money(res.emission_amount)
+ << " in emissions, and " << cryptonote::print_money(res.fee_amount) << " in fees";
return true;
}