| 54 | } |
| 55 | |
| 56 | const 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 | |
| 65 | CBlockIndex* CChain::FindEarliestAtLeast(int64_t nTime) const |
| 66 | { |
no test coverage detected