| 496 | return std::nullopt; |
| 497 | } |
| 498 | bool findBlock(const uint256& hash, const FoundBlock& block) override |
| 499 | { |
| 500 | WAIT_LOCK(cs_main, lock); |
| 501 | const CChain& active = Assert(m_node.chainman)->ActiveChain(); |
| 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); |