Log amount if negative change happens

This commit is contained in:
Duke
2025-08-21 16:14:47 -04:00
parent 6e029a62ac
commit d73c1b86e4

View File

@@ -150,7 +150,7 @@ boost::optional<CTransaction> TransactionBuilder::Build()
change -= tOut.nValue;
}
if (change < 0) {
LogPrintf("%s: negative change!\n", __func__);
LogPrintf("%s: negative change=%lu!\n", __func__, change);
return boost::none;
}