Skip to content

Commit 2d5aa5b

Browse files
committed
[Trivial] Fix errant LogPrint in UpdateZPIVSupply
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`
1 parent 0065d68 commit 2d5aa5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ bool UpdateZPIVSupply(const CBlock& block, CBlockIndex* pindex)
32353235
}
32363236

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

32403240
return true;
32413241
}

0 commit comments

Comments
 (0)