diff options
author | Ashley Holman <dscvlt@gmail.com> | 2014-05-11 00:30:18 -0500 |
---|---|---|
committer | Ashley Holman <dscvlt@gmail.com> | 2014-05-11 07:06:26 -0500 |
commit | 7a0e84dd63ac98a92fd7aafd2d432f1da71eb8da (patch) | |
tree | 459f12d13ccef44306ca83a21d902df2859466c0 | |
parent | 2653e00b127f53c7d8a8d9f2e5fa3a13cf765129 (diff) |
ProcessGetData(): abort if a block file is missing from disk
-rw-r--r-- | src/main.cpp | 2 |
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) |