diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-04-20 09:51:05 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-04-20 09:51:05 +0200 |
commit | 610a91719c89f9b52f2ae4a5bd039688fe11ffd7 (patch) | |
tree | 9aaab2f07d500fc67bb1aa86fcc85322c6eab267 /src/qt/clientmodel.h | |
parent | cf92bce526d11091b5b39f5d8dbddb972250062f (diff) |
Declare headers height/time cache mutable, re-set the methods const
Diffstat (limited to 'src/qt/clientmodel.h')
-rw-r--r-- | src/qt/clientmodel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qt/clientmodel.h b/src/qt/clientmodel.h index 6f7077dad6..0e6b34fbfd 100644 --- a/src/qt/clientmodel.h +++ b/src/qt/clientmodel.h @@ -51,8 +51,8 @@ public: //! Return number of connections, default is in- and outbound (total) int getNumConnections(unsigned int flags = CONNECTIONS_ALL) const; int getNumBlocks() const; - int getHeaderTipHeight(); - int64_t getHeaderTipTime(); + int getHeaderTipHeight() const; + int64_t getHeaderTipTime() const; //! Return number of transactions in the mempool long getMempoolSize() const; //! Return the dynamic memory usage of the mempool @@ -82,8 +82,8 @@ public: QString dataDir() const; // caches for the best header - std::atomic<int> cachedBestHeaderHeight; - std::atomic<int64_t> cachedBestHeaderTime; + mutable std::atomic<int> cachedBestHeaderHeight; + mutable std::atomic<int64_t> cachedBestHeaderTime; private: OptionsModel *optionsModel; |