aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-01-23 09:58:42 -0500
committerRussell Yanofsky <russ@yanofsky.org>2017-04-26 06:36:38 -0400
commit82b7dc373afff277d3083d09e68c6b69778f312f (patch)
tree0359a2ebea49e644a60ef76f2e65c37bb6da3a28 /src/wallet/wallet.h
parentbd9ec0ef1ea73209ba9e491e4b7847c895ca7a2f (diff)
downloadbitcoin-82b7dc373afff277d3083d09e68c6b69778f312f.tar.xz
[wallet] Add GetLegacyBalance method to simplify getbalance RPC
This adds a simpler new implementation of getbalance logic along with asserts to confirm it behaves identically to the old logic. The old logic is removed in the next commit.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index a52ae99ed1..342715b478 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -918,6 +918,7 @@ public:
CAmount GetWatchOnlyBalance() const;
CAmount GetUnconfirmedWatchOnlyBalance() const;
CAmount GetImmatureWatchOnlyBalance() const;
+ CAmount GetLegacyBalance(const isminefilter& filter, int minDepth, const std::string* account) const;
/**
* Insert additional inputs into the transaction by
@@ -1004,6 +1005,8 @@ public:
bool DelAddressBook(const CTxDestination& address);
+ const std::string& GetAccountName(const CScript& scriptPubKey) const;
+
void Inventory(const uint256 &hash) override
{
{