From 9c4acae5fd2814314dcd142878529ebb30a38669 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 9 Mar 2020 10:32:29 -0400 Subject: [PATCH] Move this inside another lexical scope to hopefully avoid compiler bugs in gcc 8.3 and clang 9.0 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index af8191782..d069c7068 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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 = █