Skip to content

Commit

Permalink
Merge pull request bitcoin#578 from sickpig/port/bu-pr-570
Browse files Browse the repository at this point in the history
Fix Thinblock Missing transactiosn log message (port bitcoin#570)
  • Loading branch information
gandrewstone authored May 15, 2017
2 parents 5767aa0 + 739c95b commit 28a7959
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/thinblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ bool CThinBlock::process(CNode *pfrom, int nSizeThinBlock, string strCommand)
{
// This marks the end of the transactions we've received. If we get this and we have NOT been able to
// finish reassembling the block, we need to re-request the full regular block
LogPrint("thin", "Missing %d Thinblock transactions, re-requesting a regular block\n",
pfrom->thinBlockWaitingForTxns);
thindata.UpdateInBoundReRequestedTx(pfrom->thinBlockWaitingForTxns);
thindata.ClearThinBlockData(pfrom);

vector<CInv> vGetData;
vGetData.push_back(CInv(MSG_BLOCK, header.GetHash()));
pfrom->PushMessage(NetMsgType::GETDATA, vGetData);
setPreVerifiedTxHash.clear(); // Xpress Validation - clear the set since we do not do XVal on regular blocks
LogPrint("thin", "Missing %d Thinblock transactions, re-requesting a regular block\n",
pfrom->thinBlockWaitingForTxns);
thindata.UpdateInBoundReRequestedTx(pfrom->thinBlockWaitingForTxns);
}

return true;
Expand Down

0 comments on commit 28a7959

Please sign in to comment.