diff options
| author | Jonas Schnelli <[email protected]> | 2017-04-20 09:51:05 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2017-04-20 09:51:05 +0200 |
| commit | 610a91719c89f9b52f2ae4a5bd039688fe11ffd7 (patch) | |
| tree | 9aaab2f07d500fc67bb1aa86fcc85322c6eab267 /src/qt/clientmodel.cpp | |
| parent | Update the remaining blocks left in modaloverlay at init. (diff) | |
| download | discoin-610a91719c89f9b52f2ae4a5bd039688fe11ffd7.tar.xz discoin-610a91719c89f9b52f2ae4a5bd039688fe11ffd7.zip | |
Declare headers height/time cache mutable, re-set the methods const
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 9a8af01a3..cbc6ca129 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -74,7 +74,7 @@ int ClientModel::getNumBlocks() const return chainActive.Height(); } -int ClientModel::getHeaderTipHeight() +int ClientModel::getHeaderTipHeight() const { if (cachedBestHeaderHeight == -1) { // make sure we initially populate the cache via a cs_main lock @@ -87,7 +87,7 @@ int ClientModel::getHeaderTipHeight() return cachedBestHeaderHeight; } -int64_t ClientModel::getHeaderTipTime() +int64_t ClientModel::getHeaderTipTime() const { if (cachedBestHeaderTime == -1) { LOCK(cs_main); |