Wrap long line and update comments
This commit is contained in:
@@ -4374,7 +4374,8 @@ void CWallet::GetFilteredNotes(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find notes in the wallet filtered by payment addresses, min depth and ability to spend.
|
* Find notes in the wallet filtered by payment addresses, min depth, max depth,
|
||||||
|
* if the note is spent, if a spending key is required, and if the notes are locked.
|
||||||
* These notes are decrypted and added to the output parameter vector, outEntries.
|
* These notes are decrypted and added to the output parameter vector, outEntries.
|
||||||
*/
|
*/
|
||||||
void CWallet::GetFilteredNotes(
|
void CWallet::GetFilteredNotes(
|
||||||
@@ -4393,7 +4394,10 @@ void CWallet::GetFilteredNotes(
|
|||||||
CWalletTx wtx = p.second;
|
CWalletTx wtx = p.second;
|
||||||
|
|
||||||
// Filter the transactions before checking for notes
|
// Filter the transactions before checking for notes
|
||||||
if (!CheckFinalTx(wtx) || wtx.GetBlocksToMaturity() > 0 || wtx.GetDepthInMainChain() < minDepth || wtx.GetDepthInMainChain() > maxDepth) {
|
if (!CheckFinalTx(wtx) ||
|
||||||
|
wtx.GetBlocksToMaturity() > 0 ||
|
||||||
|
wtx.GetDepthInMainChain() < minDepth ||
|
||||||
|
wtx.GetDepthInMainChain() > maxDepth) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1281,7 +1281,8 @@ public:
|
|||||||
bool ignoreSpent=true,
|
bool ignoreSpent=true,
|
||||||
bool requireSpendingKey=true);
|
bool requireSpendingKey=true);
|
||||||
|
|
||||||
/* Find notes filtered by payment addresses, min depth, ability to spend */
|
/* Find notes filtered by payment addresses, min depth, max depth, if they are spent,
|
||||||
|
if a spending key is required, and if they are locked */
|
||||||
void GetFilteredNotes(std::vector<CSproutNotePlaintextEntry>& sproutEntries,
|
void GetFilteredNotes(std::vector<CSproutNotePlaintextEntry>& sproutEntries,
|
||||||
std::vector<SaplingNoteEntry>& saplingEntries,
|
std::vector<SaplingNoteEntry>& saplingEntries,
|
||||||
std::set<libzcash::PaymentAddress>& filterAddresses,
|
std::set<libzcash::PaymentAddress>& filterAddresses,
|
||||||
|
|||||||
Reference in New Issue
Block a user