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

Method getLastBlockTime

src/interfaces/node.cpp:168–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 return ::chainActive.Height();
167 }
168 int64_t getLastBlockTime() override
169 {
170 LOCK(::cs_main);
171 if (::chainActive.Tip()) {
172 return ::chainActive.Tip()->GetBlockTime();
173 }
174 return Params().GenesisBlock().GetBlockTime(); // Genesis block's time of current network
175 }
176 double getVerificationProgress() override
177 {
178 const CBlockIndex* tip;

Callers 2

setClientModelMethod · 0.80
setClientModelMethod · 0.80

Calls 3

ParamsClass · 0.50
TipMethod · 0.45
GetBlockTimeMethod · 0.45

Tested by

no test coverage detected