Rename GetUnspentNotes to GetFilteredNotes

Added parameter to ignore spent notes, which is true by default.
This commit is contained in:
Simon
2016-09-07 16:07:26 -07:00
parent 6d2d045c6b
commit 1b141933e5
5 changed files with 10 additions and 10 deletions

View File

@@ -2878,7 +2878,7 @@ CAmount getBalanceZaddr(std::string address, size_t minDepth = 1) {
CAmount balance = 0;
std::vector<CNotePlaintextEntry> entries;
LOCK2(cs_main, pwalletMain->cs_wallet);
pwalletMain->GetUnspentNotes(entries, address, minDepth);
pwalletMain->GetFilteredNotes(entries, address, minDepth);
for (auto & entry : entries) {
balance += CAmount(entry.plaintext.value);
}