Skip to content

Commit

Permalink
fix print_stat
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptokatz committed Nov 13, 2018
1 parent 1e125e3 commit d4b7fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Daemon/DaemonCommandsHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ bool DaemonCommandsHandler::print_stat(const std::vector<std::string>& args) {
uint64_t totalCoinsInNetwork = m_core.coinsEmittedAtHeight(height);
uint64_t totalCoinsOnDeposits = m_core.depositAmountAtHeight(height);
uint64_t totalCoinsOnInvestments = m_core.investmentAmountAtHeight(height);
uint64_t amountOfActiveCoins = totalCoinsInNetwork - totalCoinsOnDeposits;
uint64_t amountOfActiveCoins = totalCoinsInNetwork - totalCoinsOnDeposits - totalCoinsOnInvestments;

const auto& currency = m_core.currency();
std::cout << "Block height: " << height << std::endl;
Expand Down

0 comments on commit d4b7fc9

Please sign in to comment.