Use static_cast when calculating donation and add some debugging

This commit is contained in:
Duke
2025-10-15 13:24:08 -04:00
parent e73251ad92
commit 6435cd51a6
2 changed files with 13 additions and 5 deletions

View File

@@ -54,6 +54,9 @@ void TransactionBuilder::AddSaplingOutput(
CAmount value,
std::array<unsigned char, HUSH_MEMO_SIZE> memo)
{
if(fZdebug) {
LogPrintf("%s: adding output with value=%ld\n", __func__, value);
}
auto note = libzcash::SaplingNote(to, value);
outputs.emplace_back(ovk, note, memo);
mtx.valueBalance -= value;