Skip to content

Commit

Permalink
Merge pull request PIVX-Project#397 from presstab/runtime_error
Browse files Browse the repository at this point in the history
Fix runtime errors from tiny format specifiers.
  • Loading branch information
presstab committed Nov 17, 2017
2 parents f361344 + c1905cd commit 84e0dc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3176,14 +3176,14 @@ bool RecalculatePIVSupply(int nHeightStart)
// Add fraudulent funds to the supply and remove any recovered funds.
if (pindex->nHeight == Params().Zerocoin_Block_RecalculateAccumulators()) {
PopulateInvalidOutPointMap();
LogPrintf("%s : Original money supply=%s\n", FormatMoney(pindex->nMoneySupply));
LogPrintf("%s : Original money supply=%s\n", __func__, FormatMoney(pindex->nMoneySupply));

pindex->nMoneySupply += nFilteredThroughBittrex;
LogPrintf("%s : Adding bittrex filtered funds to supply + %s : supply=%s\n", FormatMoney(nFilteredThroughBittrex), FormatMoney(pindex->nMoneySupply));
LogPrintf("%s : Adding bittrex filtered funds to supply + %s : supply=%s\n", __func__, FormatMoney(nFilteredThroughBittrex), FormatMoney(pindex->nMoneySupply));

CAmount nLocked = GetInvalidUTXOValue();
pindex->nMoneySupply -= nLocked;
LogPrintf("%s : Removing locked from supply - %s : supply=%s\n", FormatMoney(nLocked), FormatMoney(pindex->nMoneySupply));
LogPrintf("%s : Removing locked from supply - %s : supply=%s\n", __func__, FormatMoney(nLocked), FormatMoney(pindex->nMoneySupply));
}

assert(pblocktree->WriteBlockIndex(CDiskBlockIndex(pindex)));
Expand Down

0 comments on commit 84e0dc3

Please sign in to comment.