| 603 | return FillBlock(chainman().m_blockman.LookupBlockIndex(hash), block, lock, chainman().ActiveChain(), chainman().m_blockman); |
| 604 | } |
| 605 | bool findFirstBlockWithTimeAndHeight(int64_t min_time, int min_height, const FoundBlock& block) override |
| 606 | { |
| 607 | WAIT_LOCK(cs_main, lock); |
| 608 | const CChain& active = chainman().ActiveChain(); |
| 609 | return FillBlock(active.FindEarliestAtLeast(min_time, min_height), block, lock, active, chainman().m_blockman); |
| 610 | } |
| 611 | bool findAncestorByHeight(const uint256& block_hash, int ancestor_height, const FoundBlock& ancestor_out) override |
| 612 | { |
| 613 | WAIT_LOCK(cs_main, lock); |