Move this inside another lexical scope to hopefully avoid compiler bugs in gcc 8.3 and clang 9.0
This commit is contained in:
@@ -4157,8 +4157,8 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *
|
|||||||
assert(pindexNew->pprev == chainActive.Tip());
|
assert(pindexNew->pprev == chainActive.Tip());
|
||||||
// Read block from disk.
|
// Read block from disk.
|
||||||
int64_t nTime1 = GetTimeMicros();
|
int64_t nTime1 = GetTimeMicros();
|
||||||
CBlock block;
|
|
||||||
if (!pblock) {
|
if (!pblock) {
|
||||||
|
CBlock block;
|
||||||
if (!ReadBlockFromDisk(block, pindexNew,1))
|
if (!ReadBlockFromDisk(block, pindexNew,1))
|
||||||
return AbortNode(state, "Failed to read block");
|
return AbortNode(state, "Failed to read block");
|
||||||
pblock = █
|
pblock = █
|
||||||
|
|||||||
Reference in New Issue
Block a user