Changeset View
Changeset View
Standalone View
Standalone View
src/qt/clientmodel.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | public: | ||||
QString formatSubVersion() const; | QString formatSubVersion() const; | ||||
bool isReleaseVersion() const; | bool isReleaseVersion() const; | ||||
QString formatClientStartupTime() const; | QString formatClientStartupTime() const; | ||||
QString dataDir() const; | QString dataDir() const; | ||||
QString blocksDir() const; | QString blocksDir() const; | ||||
bool getProxyInfo(std::string &ip_port) const; | bool getProxyInfo(std::string &ip_port) const; | ||||
// caches for the best header, number of blocks | // caches for the best header: hash, number of blocks and block time | ||||
mutable std::atomic<int> cachedBestHeaderHeight; | mutable std::atomic<int> cachedBestHeaderHeight; | ||||
mutable std::atomic<int64_t> cachedBestHeaderTime; | mutable std::atomic<int64_t> cachedBestHeaderTime; | ||||
mutable std::atomic<int> m_cached_num_blocks{-1}; | mutable std::atomic<int> m_cached_num_blocks{-1}; | ||||
Mutex m_cached_tip_mutex; | Mutex m_cached_tip_mutex; | ||||
BlockHash m_cached_tip_blocks GUARDED_BY(m_cached_tip_mutex){}; | BlockHash m_cached_tip_blocks GUARDED_BY(m_cached_tip_mutex){}; | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |