| 66 | } |
| 67 | |
| 68 | static const CBlockIndex* NextSyncBlock(const CBlockIndex* pindex_prev) |
| 69 | { |
| 70 | AssertLockHeld(cs_main); |
| 71 | |
| 72 | if (!pindex_prev) { |
| 73 | return chainActive.Genesis(); |
| 74 | } |
| 75 | |
| 76 | const CBlockIndex* pindex = chainActive.Next(pindex_prev); |
| 77 | if (pindex) { |
| 78 | return pindex; |
| 79 | } |
| 80 | |
| 81 | return chainActive.Next(chainActive.FindFork(pindex_prev)); |
| 82 | } |
| 83 | |
| 84 | void BaseIndex::ThreadSync() |
| 85 | { |
no test coverage detected