Only print these when -zdebug is turned on
This commit is contained in:
@@ -4388,7 +4388,9 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp, const CPubKey& my
|
|||||||
// Fetch the note that is being spent
|
// Fetch the note that is being spent
|
||||||
auto res = pwalletMain->mapSaplingNullifiersToNotes.find(spend.nullifier);
|
auto res = pwalletMain->mapSaplingNullifiersToNotes.find(spend.nullifier);
|
||||||
if (res == pwalletMain->mapSaplingNullifiersToNotes.end()) {
|
if (res == pwalletMain->mapSaplingNullifiersToNotes.end()) {
|
||||||
fprintf(stderr,"Could not find spending note %s", uint256_str(str, spend.nullifier));
|
if(fZdebug) {
|
||||||
|
fprintf(stderr,"Could not find spending note %s\n", uint256_str(str, spend.nullifier));
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
auto op = res->second;
|
auto op = res->second;
|
||||||
@@ -4442,8 +4444,10 @@ UniValue z_viewtransaction(const UniValue& params, bool fHelp, const CPubKey& my
|
|||||||
pa = recovered->second;
|
pa = recovered->second;
|
||||||
isOutgoing = true;
|
isOutgoing = true;
|
||||||
} else {
|
} else {
|
||||||
// Unreadable
|
// Unreadable or unconfirmed?
|
||||||
fprintf(stderr,"Could not recover Sapling note!");
|
if(fZdebug) {
|
||||||
|
fprintf(stderr,"Could not recover Sapling note!\n");
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user