Browse Source

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

0.10
Ashley Holman 11 years ago
parent
commit
7a0e84dd63
  1. 2
      src/main.cpp

2
src/main.cpp

@ -3373,7 +3373,7 @@ void static ProcessGetData(CNode* pfrom) @@ -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)

Loading…
Cancel
Save