| 481 | return block && ((block->nStatus & BLOCK_HAVE_DATA) != 0) && block->nTx > 0; |
| 482 | } |
| 483 | CBlockLocator getTipLocator() override |
| 484 | { |
| 485 | LOCK(cs_main); |
| 486 | const CChain& active = Assert(m_node.chainman)->ActiveChain(); |
| 487 | return active.GetLocator(); |
| 488 | } |
| 489 | std::optional<int> findLocatorFork(const CBlockLocator& locator) override |
| 490 | { |
| 491 | LOCK(cs_main); |
no test coverage detected