more testing

This commit is contained in:
Michael Toutonghi
2018-05-16 05:50:57 -07:00
parent c132b91a01
commit 351bbd2eae

View File

@@ -6024,6 +6024,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->lasthdrsreq = (int32_t)(pindex ? pindex->nHeight : -1);
for (; pindex; pindex = chainActive.Next(pindex))
{
CBlockHeader h = pindex->GetBlockHeader();
// we seem to be off by one, see if adding one to solution addresses the problem
h.nSolution.push_back(0);
vHeaders.push_back(pindex->GetBlockHeader());
if (--nLimit <= 0 || pindex->GetBlockHash() == hashStop)
break;