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

Method guessVerificationProgress

src/node/interfaces.cpp:545–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543 }
544 void findCoins(std::map<COutPoint, Coin>& coins) override { return FindCoins(m_node, coins); }
545 double guessVerificationProgress(const uint256& block_hash) override
546 {
547 LOCK(cs_main);
548 return GuessVerificationProgress(chainman().m_blockman.LookupBlockIndex(block_hash), Params().GetConsensus().nPowTargetSpacing);
549 }
550 bool hasBlocks(const uint256& block_hash, int min_height, std::optional<int> max_height) override
551 {
552 // hasBlocks returns true if all ancestors of block_hash in specified

Callers 1

Calls 3

LookupBlockIndexMethod · 0.80
ParamsClass · 0.70

Tested by

no test coverage detected