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

Function GetLocator

src/index/base.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59CBlockLocator GetLocator(interfaces::Chain& chain, const uint256& block_hash)
60{
61 CBlockLocator locator;
62 bool found = chain.findBlock(block_hash, interfaces::FoundBlock().locator(locator));
63 assert(found);
64 assert(!locator.IsNull());
65 return locator;
66}
67
68BaseIndex::DB::DB(const fs::path& path, size_t n_cache_size, bool f_memory, bool f_wipe, bool f_obfuscate) :
69 CDBWrapper{DBParams{

Callers 3

CommitMethod · 0.70
BOOST_AUTO_TEST_CASEFunction · 0.50
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.50

Calls 3

FoundBlockClass · 0.85
findBlockMethod · 0.80
IsNullMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.40