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

Method getBlockHash

src/node/interfaces.cpp:468–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 return std::nullopt;
467 }
468 uint256 getBlockHash(int height) override
469 {
470 LOCK(::cs_main);
471 const CChain& active = Assert(m_node.chainman)->ActiveChain();
472 CBlockIndex* block = active[height];
473 assert(block);
474 return block->GetBlockHash();
475 }
476 bool haveBlockOnDisk(int height) override
477 {
478 LOCK(cs_main);

Callers 1

AttachChainMethod · 0.80

Calls 1

GetBlockHashMethod · 0.45

Tested by

no test coverage detected