diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-04 12:27:44 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-04 16:02:04 +0200 |
| commit | 4a48a0671d2e02ba2a86af98282a452f23546b9e (patch) | |
| tree | 03379893de515bc7cef11f5d2927bbe85f0ef36f /src/main.cpp | |
| parent | Merge pull request #4223 (diff) | |
| download | discoin-4a48a0671d2e02ba2a86af98282a452f23546b9e.tar.xz discoin-4a48a0671d2e02ba2a86af98282a452f23546b9e.zip | |
Remove side effect in assertion in ProcessGetData
A side-effect was introduced into an assertion in 7a0e84d. This commit
fixes that.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 30fa9c6d7..e71d2d0cb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) |