| 466 | return std::nullopt; |
| 467 | } |
| 468 | uint256 getBlockHash(int height) override |
| 469 | { |
| 470 | LOCK(::cs_main); |
| 471 | const CChain& active = Assert(m_node.chainman)->ActiveChain(); |
| 472 | CBlockIndex* block = active[height]; |
| 473 | assert(block); |
| 474 | return block->GetBlockHash(); |
| 475 | } |
| 476 | bool haveBlockOnDisk(int height) override |
| 477 | { |
| 478 | LOCK(cs_main); |
no test coverage detected