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

Method haveBlockOnDisk

src/node/interfaces.cpp:476–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 return block->GetBlockHash();
475 }
476 bool haveBlockOnDisk(int height) override
477 {
478 LOCK(cs_main);
479 const CChain& active = Assert(m_node.chainman)->ActiveChain();
480 CBlockIndex* block = active[height];
481 return block && ((block->nStatus & BLOCK_HAVE_DATA) != 0) && block->nTx > 0;
482 }
483 CBlockLocator getTipLocator() override
484 {
485 LOCK(cs_main);

Callers 1

AttachChainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected