From e492d98632306adea7ab6ff404cf76bfea7ce4fe Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Thu, 13 Oct 2016 18:27:27 -0500 Subject: [PATCH] Document CWalletTx::FindMyNotes Part of #1447 --- src/wallet/wallet.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 495572bb0..3a102546a 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1117,6 +1117,14 @@ void CWallet::EraseFromWallet(const uint256 &hash) } +/** + * Finds all output notes in the given transaction that have been sent to + * PaymentAddresses in this wallet. + * + * It should never be necessary to call this method with a CWalletTx, because + * the result of FindMyNotes (for the addresses available at the time) will + * already have been cached in CWalletTx.mapNoteData. + */ mapNoteData_t CWallet::FindMyNotes(const CTransaction& tx) const { LOCK(cs_SpendingKeyStore);