aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAshley Holman <dscvlt@gmail.com>2014-05-11 00:30:18 -0500
committerAshley Holman <dscvlt@gmail.com>2014-05-11 07:06:26 -0500
commit7a0e84dd63ac98a92fd7aafd2d432f1da71eb8da (patch)
tree459f12d13ccef44306ca83a21d902df2859466c0 /src
parent2653e00b127f53c7d8a8d9f2e5fa3a13cf765129 (diff)
ProcessGetData(): abort if a block file is missing from disk
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 379ca3ef74..f90f038016 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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)