Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Nov 2, 2016
1 parent cb70983 commit 22ee0ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,15 @@ int printMetrics(size_t cols, int64_t nStart, bool mining)

int mined = 0;
int orphaned = 0;
CAmount immature {0};
CAmount mature {0};
{
LOCK2(cs_main, cs_metrics);
boost::strict_lock_ptr<std::list<uint256>> u = trackedBlocks.synchronize();
auto consensusParams = Params().GetConsensus();
auto tipHeight = chainActive.Height();
std::string units = Params().CurrencyUnits();

// Update orphans and calculate subsidies
CAmount immature {0};
CAmount mature {0};
for (std::list<uint256>::iterator it = u->begin(); it != u->end(); it++) {
auto hash = *it;
if (mapBlockIndex.count(hash) > 0 &&
Expand All @@ -190,6 +189,7 @@ int printMetrics(size_t cols, int64_t nStart, bool mining)
}

if (mined > 0) {
std::string units = Params().CurrencyUnits();
std::cout << "- " << strprintf(_("You have mined %d blocks!"), mined) << std::endl;
std::cout << " "
<< strprintf(_("Orphaned: %d blocks, Immature: %u %s, Mature: %u %s"),
Expand Down

0 comments on commit 22ee0ef

Please sign in to comment.