Move this inside another lexical scope to hopefully avoid compiler bugs in gcc 8.3 and clang 9.0

This commit is contained in:
Duke Leto
2020-03-09 10:32:29 -04:00
parent 4f06ce726b
commit 9c4acae5fd

View File

@@ -4157,8 +4157,8 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *
assert(pindexNew->pprev == chainActive.Tip());
// Read block from disk.
int64_t nTime1 = GetTimeMicros();
CBlock block;
if (!pblock) {
CBlock block;
if (!ReadBlockFromDisk(block, pindexNew,1))
return AbortNode(state, "Failed to read block");
pblock = █