| 79 | } |
| 80 | |
| 81 | bool BlockProcessor::requestConnectHeaders(const CBlockHeader& header) { |
| 82 | bool needPrevHeaders = headerProcessor.requestConnectHeaders(header, from); |
| 83 | |
| 84 | if (needPrevHeaders) { |
| 85 | // We don't have previous block. We can't connect it to the chain. |
| 86 | // Ditch it. We will re-request it later if we see that we still want it. |
| 87 | LogPrint("thin", "Can't connect block %s. We don't have prev. Ignoring it peer=%d.\n", |
| 88 | header.GetHash().ToString(), from.id); |
| 89 | |
| 90 | worker.stopWork(header.GetHash()); |
| 91 | } |
| 92 | return needPrevHeaders; |
| 93 | } |
no test coverage detected