| 63 | } |
| 64 | |
| 65 | CBlockIndex* 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 | |
| 73 | uint256 CBlockIndex::GetBlockTrust() const |
no test coverage detected