aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2022-05-09 11:24:20 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2022-08-12 13:05:57 -0300
commit321335bf0292034d79afa6c44f7f072942b6cc3c (patch)
tree5ce6ddabc9100410cf4cdd5d9a1723dafc9b6ccb /src/qt/walletmodel.h
parente62958dc81d215a1c56318d0914dfd9a33d45973 (diff)
GUI: add getter for WalletModel::m_cached_balances field
No need to guard it as it is/will only be accessed from the main thread for now
Diffstat (limited to 'src/qt/walletmodel.h')
-rw-r--r--src/qt/walletmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
index ad1239ccdc..18951c2858 100644
--- a/src/qt/walletmodel.h
+++ b/src/qt/walletmodel.h
@@ -157,6 +157,9 @@ public:
uint256 getLastBlockProcessed() const;
+ // Retrieve the cached wallet balance
+ interfaces::WalletBalances getCachedBalance() const;
+
private:
std::unique_ptr<interfaces::Wallet> m_wallet;
std::unique_ptr<interfaces::Handler> m_handler_unload;