From 095eee4f4db1f9dfc4ca8f8280286c7b853f0894 Mon Sep 17 00:00:00 2001 From: Eirik Ogilvie-Wigley Date: Mon, 22 Oct 2018 10:01:17 -0600 Subject: [PATCH] Wrap long line and update comments --- src/wallet/wallet.cpp | 8 ++++++-- src/wallet/wallet.h | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 76a44afc0..b3c419b87 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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. */ void CWallet::GetFilteredNotes( @@ -4393,7 +4394,10 @@ void CWallet::GetFilteredNotes( CWalletTx wtx = p.second; // 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; } diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index f492657f7..2d65a8779 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1281,7 +1281,8 @@ public: bool ignoreSpent=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& sproutEntries, std::vector& saplingEntries, std::set& filterAddresses,