diff options
author | John Newbery <john@johnnewbery.com> | 2018-06-27 13:43:25 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-06-28 17:50:40 -0400 |
commit | ef7bc8893c7a953953aa457736d79c28a4f45792 (patch) | |
tree | fbfda7cd9eb451c4c08792186cde94f67fba517c /src/interfaces | |
parent | 4279da47855ec776f8d57c6579fe89afc9cbe8c1 (diff) |
[wallet] Factor out GetWatchOnlyBalance()
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index e98acba0df..bcbe4bdea8 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -339,7 +339,7 @@ public: result.immature_balance = m_wallet.GetImmatureBalance(); result.have_watch_only = m_wallet.HaveWatchOnly(); if (result.have_watch_only) { - result.watch_only_balance = m_wallet.GetWatchOnlyBalance(); + result.watch_only_balance = m_wallet.GetBalance(ISMINE_WATCH_ONLY); result.unconfirmed_watch_only_balance = m_wallet.GetUnconfirmedWatchOnlyBalance(); result.immature_watch_only_balance = m_wallet.GetImmatureWatchOnlyBalance(); } |