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

Method getVerificationProgress

src/node/interfaces.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 return Params().GenesisBlock().GetBlockTime(); // Genesis block's time of current network
239 }
240 double getVerificationProgress() override
241 {
242 const CBlockIndex* tip;
243 {
244 LOCK(::cs_main);
245 tip = chainman().ActiveChain().Tip();
246 }
247 return GuessVerificationProgress(tip, Params().GetConsensus().nPowTargetSpacing);
248 }
249 bool isInitialBlockDownload() override {
250 return chainman().ActiveChainstate().IsInitialBlockDownload();
251 }

Callers

nothing calls this directly

Calls 3

ParamsClass · 0.70
TipMethod · 0.45

Tested by

no test coverage detected