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

Method findBlock

src/node/interfaces.cpp:498–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 return std::nullopt;
497 }
498 bool findBlock(const uint256& hash, const FoundBlock& block) override
499 {
500 WAIT_LOCK(cs_main, lock);
501 const CChain& active = Assert(m_node.chainman)->ActiveChain();
502 return FillBlock(m_node.chainman->m_blockman.LookupBlockIndex(hash), block, lock, active);
503 }
504 bool findFirstBlockWithTimeAndHeight(int64_t min_time, int min_height, const FoundBlock& block) override
505 {
506 WAIT_LOCK(cs_main, lock);

Callers 14

LoadToWalletMethod · 0.80
RescanFromTimeMethod · 0.80
GetKeyBirthTimesMethod · 0.80
ComputeTimeSmartMethod · 0.80
tryGetTxStatusMethod · 0.80
importwalletFunction · 0.80
dumpwalletFunction · 0.80
importmultiFunction · 0.80
importdescriptorsFunction · 0.80
WalletTxToJSONFunction · 0.80

Calls 2

FillBlockFunction · 0.85
LookupBlockIndexMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64