diff options
| author | Matt Corallo <[email protected]> | 2014-10-29 17:01:18 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2014-10-29 17:01:18 -0700 |
| commit | 8375e2215f24ff4b92c634d2dc56898e9cda437b (patch) | |
| tree | 1ad1698e8e38e3d49e4ad990eb57da8729f9bae3 /src/main.cpp | |
| parent | Fix for crash during block download (diff) | |
| download | discoin-8375e2215f24ff4b92c634d2dc56898e9cda437b.tar.xz discoin-8375e2215f24ff4b92c634d2dc56898e9cda437b.zip | |
Fix -loadblock after shutdown during IBD
Diffstat (limited to 'src/main.cpp')
| -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 0506a7f59..238b0400e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3136,7 +3136,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp) } // process in case the block isn't known yet - if (mapBlockIndex.count(hash) == 0) { + if (mapBlockIndex.count(hash) == 0 || (mapBlockIndex[hash]->nStatus & BLOCK_HAVE_DATA) == 0) { CValidationState state; if (ProcessBlock(state, NULL, &block, dbp)) nLoaded++; |