From fa9e52056fd8c3a82025ddff5a69a8e54c6920bb Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 20 Oct 2016 08:38:11 -0300 Subject: [PATCH] test --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 153336117..f613e8866 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3818,7 +3818,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp) std::pair::iterator, std::multimap::iterator> range = mapBlocksUnknownParent.equal_range(head); while (range.first != range.second) { std::multimap::iterator it = range.first; - if (ReadBlockFromDisk(block, it->second)) + if (ReadBlockFromDisk(mapBlockIndex[hash]!=0?mapBlockIndex[hash]->nHeight:0,block, it->second)) { LogPrintf("%s: Processing out of order child %s of %s\n", __func__, block.GetHash().ToString(), head.ToString());