MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / findBlock

Method findBlock

src/node/interfaces.cpp:600–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598 return filter.GetFilter().MatchAny(filter_set);
599 }
600 bool findBlock(const uint256& hash, const FoundBlock& block) override
601 {
602 WAIT_LOCK(cs_main, lock);
603 return FillBlock(chainman().m_blockman.LookupBlockIndex(hash), block, lock, chainman().ActiveChain(), chainman().m_blockman);
604 }
605 bool findFirstBlockWithTimeAndHeight(int64_t min_time, int min_height, const FoundBlock& block) override
606 {
607 WAIT_LOCK(cs_main, lock);

Callers 12

updateStateMethod · 0.80
RescanFromTimeMethod · 0.80
ComputeTimeSmartMethod · 0.80
WriteBestBlockMethod · 0.80
tryGetTxStatusMethod · 0.80
importdescriptorsFunction · 0.80
transactions.cppFile · 0.80
listsinceblockFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
GetLocatorFunction · 0.80

Calls 1

LookupBlockIndexMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64