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

Method getTipLocator

src/node/interfaces.cpp:483–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481 return block && ((block->nStatus & BLOCK_HAVE_DATA) != 0) && block->nTx > 0;
482 }
483 CBlockLocator getTipLocator() override
484 {
485 LOCK(cs_main);
486 const CChain& active = Assert(m_node.chainman)->ActiveChain();
487 return active.GetLocator();
488 }
489 std::optional<int> findLocatorFork(const CBlockLocator& locator) override
490 {
491 LOCK(cs_main);

Callers 2

CreateMethod · 0.80
AttachChainMethod · 0.80

Calls 1

GetLocatorMethod · 0.80

Tested by

no test coverage detected