MCPcopy Create free account
hub / github.com/LUX-Core/lux / getHeaderTipTime

Method getHeaderTipTime

src/qt/clientmodel.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121int64_t ClientModel::getHeaderTipTime()
122{
123 if (cachedBestHeaderTime == -1) {
124 LOCK(cs_main);
125 if (pindexBestHeader) {
126 cachedBestHeaderTime = pindexBestHeader->GetBlockTime();
127 }
128 }
129 return cachedBestHeaderTime;
130}
131
132quint64 ClientModel::getTotalBytesRecv() const
133{

Callers 2

setClientModelMethod · 0.80

Calls 1

GetBlockTimeMethod · 0.45

Tested by

no test coverage detected