Browse Source

Remove side effect in assertion in ProcessGetData

A side-effect was introduced into an assertion in 7a0e84d. This commit
fixes that.
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
4a48a0671d
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      src/main.cpp

3
src/main.cpp

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

Loading…
Cancel
Save