MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / requestConnectHeaders

Method requestConnectHeaders

src/blockprocessor.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool 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}

Callers 1

ProcessMessageFunction · 0.45

Calls 3

ToStringMethod · 0.45
GetHashMethod · 0.45
stopWorkMethod · 0.45

Tested by

no test coverage detected