MCPcopy Create free account
hub / github.com/ElementsProject/elements / getHeaderTipTime

Method getHeaderTipTime

src/qt/clientmodel.cpp:107–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int64_t ClientModel::getHeaderTipTime() const
108{
109 if (cachedBestHeaderTime == -1) {
110 int height;
111 int64_t blockTime;
112 if (m_node.getHeaderTip(height, blockTime)) {
113 cachedBestHeaderHeight = height;
114 cachedBestHeaderTime = blockTime;
115 }
116 }
117 return cachedBestHeaderTime;
118}
119
120int ClientModel::getNumBlocks() const
121{

Callers 1

Calls 1

getHeaderTipMethod · 0.80

Tested by

no test coverage detected