Skip to content

Commit

Permalink
[Trivial] Fix errant LogPrint in UpdateZPIVSupply
Browse files Browse the repository at this point in the history
The `LogPrint()` at the end of this function was missing a `,` separator
between the category and the message, as well as returning the two
paramaters in reverse order when compared to similar log prints.

The missing `,` was causing a segfault when running with `-debug` or
`-debug=zero`
  • Loading branch information
Fuzzbawls committed Mar 2, 2018
1 parent 0065d68 commit 2d5aa5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3235,7 +3235,7 @@ bool UpdateZPIVSupply(const CBlock& block, CBlockIndex* pindex)
}

for (auto& denom : zerocoinDenomList)
LogPrint("zero" "%s coins for denomination %d pubcoin %s\n", __func__, pindex->mapZerocoinSupply.at(denom), denom);
LogPrint("zero", "%s coins for denomination %d pubcoin %s\n", __func__, denom, pindex->mapZerocoinSupply.at(denom));

return true;
}
Expand Down

0 comments on commit 2d5aa5b

Please sign in to comment.