aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2020-04-24 17:40:33 -0400
committerRussell Yanofsky <russ@yanofsky.org>2020-05-01 06:59:09 -0400
commit83f69fab3a1ae97c5cff8ba1e6fd191b0fa264bb (patch)
treefbbbed9146b8baabc077896cbafdd28b91624fe3 /src/qt/walletmodel.h
parent608359b071dac82a9cf33a6c9e01f87abfcb90eb (diff)
downloadbitcoin-83f69fab3a1ae97c5cff8ba1e6fd191b0fa264bb.tar.xz
Switch transaction table to use wallet height not node height
Tweak of #17905 to make gui display of transactions and balances more consistent. This change shouldn't cause visible effects in normal cases, just make GUI wallet code more internally correct and consistent.
Diffstat (limited to 'src/qt/walletmodel.h')
-rw-r--r--src/qt/walletmodel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h
index 07004b7c6b..5521565f7c 100644
--- a/src/qt/walletmodel.h
+++ b/src/qt/walletmodel.h
@@ -144,7 +144,7 @@ public:
interfaces::Node& node() const { return m_node; }
interfaces::Wallet& wallet() const { return *m_wallet; }
- ClientModel& clientModel() const { return m_client_model; }
+ int getNumBlocks() const { return cachedNumBlocks; }
QString getWalletName() const;
QString getDisplayName() const;