| 502 | return FillBlock(m_node.chainman->m_blockman.LookupBlockIndex(hash), block, lock, active); |
| 503 | } |
| 504 | bool findFirstBlockWithTimeAndHeight(int64_t min_time, int min_height, const FoundBlock& block) override |
| 505 | { |
| 506 | WAIT_LOCK(cs_main, lock); |
| 507 | const CChain& active = Assert(m_node.chainman)->ActiveChain(); |
| 508 | return FillBlock(active.FindEarliestAtLeast(min_time, min_height), block, lock, active); |
| 509 | } |
| 510 | bool findAncestorByHeight(const uint256& block_hash, int ancestor_height, const FoundBlock& ancestor_out) override |
| 511 | { |
| 512 | WAIT_LOCK(cs_main, lock); |