MCPcopy Create free account
hub / github.com/LUX-Core/lux / FindFork

Method FindFork

src/chain.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56const CBlockIndex* CChain::FindFork(const CBlockIndex* pindex) const
57{
58 if (pindex->nHeight > Height())
59 pindex = pindex->GetAncestor(Height());
60 while (pindex && !Contains(pindex))
61 pindex = pindex->pprev;
62 return pindex;
63}
64
65CBlockIndex* CChain::FindEarliestAtLeast(int64_t nTime) const
66{

Callers 2

getchaintipsFunction · 0.80
ActivateBestChainStepFunction · 0.80

Calls 1

GetAncestorMethod · 0.80

Tested by

no test coverage detected