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

Method FindEarliestAtLeast

src/chain.cpp:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65CBlockIndex* CChain::FindEarliestAtLeast(int64_t nTime) const
66{
67 std::vector<CBlockIndex*>::const_iterator lower = std::lower_bound(vChain.begin(), vChain.end(), nTime,
68 [](CBlockIndex* pBlock, const int64_t& time) -> bool { return pBlock->GetBlockTimeMax() < time; });
69 return (lower == vChain.end() ? nullptr : *lower);
70}
71
72
73uint256 CBlockIndex::GetBlockTrust() const

Callers 2

pruneblockchainFunction · 0.80
importwalletFunction · 0.80

Calls 3

GetBlockTimeMaxMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected