Log amount if negative change happens
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user