MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / getHeaderTipTime

Method getHeaderTipTime

src/qt/clientmodel.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int64_t ClientModel::getHeaderTipTime() const
88{
89 if (cachedBestHeaderTime == -1) {
90 int height;
91 int64_t blockTime;
92 if (m_node.getHeaderTip(height, blockTime)) {
93 cachedBestHeaderHeight = height;
94 cachedBestHeaderTime = blockTime;
95 }
96 }
97 return cachedBestHeaderTime;
98}
99
100void ClientModel::updateTimer()
101{

Callers 2

setClientModelMethod · 0.80

Calls 1

getHeaderTipMethod · 0.80

Tested by

no test coverage detected