Merge pull request #4287 from laanwj/2014_06_sideeffect

Remove side effect in assertion in ProcessGetData
This commit is contained in:
Gavin Andresen 2014-06-04 20:15:45 -04:00
commit 4fee61a905
1 changed files with 2 additions and 1 deletions

View File

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