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

Method findFirstBlockWithTimeAndHeight

src/node/interfaces.cpp:605–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
608 const CChain& active = chainman().ActiveChain();
609 return FillBlock(active.FindEarliestAtLeast(min_time, min_height), block, lock, active, chainman().m_blockman);
610 }
611 bool findAncestorByHeight(const uint256& block_hash, int ancestor_height, const FoundBlock& ancestor_out) override
612 {
613 WAIT_LOCK(cs_main, lock);

Callers 3

RescanFromTimeMethod · 0.80
AttachChainMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

FindEarliestAtLeastMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64