Document CWalletTx::FindMyNotes

Part of #1447
This commit is contained in:
Jack Grigg 2016-10-13 18:27:27 -05:00
parent a9243e4f15
commit e492d98632
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 8 additions and 0 deletions

View File

@ -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);