Auto merge of #1533 - bitcartel:master_1447_document_getfilterednotes, r=bitcartel
Document CWallet::GetFilteredNotes Also fixes return type of method which should be void. Part of #1447
This commit is contained in:
commit
bb25bd4bc1
|
@ -3322,7 +3322,11 @@ bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, bool fRejectAbsurdFee)
|
||||||
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, fRejectAbsurdFee);
|
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, fRejectAbsurdFee);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CWallet::GetFilteredNotes(std::vector<CNotePlaintextEntry> & outEntries, std::string address, int minDepth, bool ignoreSpent)
|
/**
|
||||||
|
* Find notes in the wallet filtered by payment address, min depth and ability to spend.
|
||||||
|
* These notes are decrypted and added to the output parameter vector, outEntries.
|
||||||
|
*/
|
||||||
|
void CWallet::GetFilteredNotes(std::vector<CNotePlaintextEntry> & outEntries, std::string address, int minDepth, bool ignoreSpent)
|
||||||
{
|
{
|
||||||
bool fFilterAddress = false;
|
bool fFilterAddress = false;
|
||||||
libzcash::PaymentAddress filterPaymentAddress;
|
libzcash::PaymentAddress filterPaymentAddress;
|
||||||
|
|
|
@ -241,7 +241,7 @@ public:
|
||||||
|
|
||||||
typedef std::map<JSOutPoint, CNoteData> mapNoteData_t;
|
typedef std::map<JSOutPoint, CNoteData> mapNoteData_t;
|
||||||
|
|
||||||
|
/** Decrypted note and its location in a transaction. */
|
||||||
struct CNotePlaintextEntry
|
struct CNotePlaintextEntry
|
||||||
{
|
{
|
||||||
JSOutPoint jsop;
|
JSOutPoint jsop;
|
||||||
|
@ -911,7 +911,7 @@ public:
|
||||||
void SetBroadcastTransactions(bool broadcast) { fBroadcastTransactions = broadcast; }
|
void SetBroadcastTransactions(bool broadcast) { fBroadcastTransactions = broadcast; }
|
||||||
|
|
||||||
/* Find notes filtered by payment address, min depth, ability to spend */
|
/* Find notes filtered by payment address, min depth, ability to spend */
|
||||||
bool GetFilteredNotes(std::vector<CNotePlaintextEntry> & outEntries, std::string address, int minDepth=1, bool ignoreSpent=true);
|
void GetFilteredNotes(std::vector<CNotePlaintextEntry> & outEntries, std::string address, int minDepth=1, bool ignoreSpent=true);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue