This commit is contained in:
jl777
2017-02-03 16:10:18 +02:00
parent ad70a28f2f
commit 13931733fb

View File

@@ -4343,7 +4343,11 @@ void static ProcessGetData(CNode* pfrom)
// Send block from disk
CBlock block;
if (!ReadBlockFromDisk(block, (*mi).second))
{
assert(!"cannot load block from disk");
}
else
{
if (inv.type == MSG_BLOCK)
pfrom->PushMessage("block", block);
else // MSG_FILTERED_BLOCK)
@@ -4367,7 +4371,7 @@ void static ProcessGetData(CNode* pfrom)
// else
// no response
}
}
// Trigger the peer node to send a getblocks request for the next batch of inventory
if (inv.hash == pfrom->hashContinue)
{