ProcessGetData(): abort if a block file is missing from disk

This commit is contained in:
Ashley Holman 2014-05-11 00:30:18 -05:00
parent 2653e00b12
commit 7a0e84dd63

View File

@ -3373,7 +3373,7 @@ void static ProcessGetData(CNode* pfrom)
{
// Send block from disk
CBlock block;
ReadBlockFromDisk(block, (*mi).second);
assert(ReadBlockFromDisk(block, (*mi).second));
if (inv.type == MSG_BLOCK)
pfrom->PushMessage("block", block);
else // MSG_FILTERED_BLOCK)