Browse Source

Fix potential NPD introduced in b297426c

See https://github.com/bitcoin/bitcoin/pull/10290#discussion_r113954232
for more info.
tags/v0.15.1
Matt Corallo 4 years ago
parent
commit
70d39454ee
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/validation.cpp

+ 1
- 1
src/validation.cpp View File

@@ -2538,7 +2538,7 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
}

int nStopAtHeight = GetArg("-stopatheight", DEFAULT_STOPATHEIGHT);
if (nStopAtHeight && pindexNewTip->nHeight >= nStopAtHeight) StartShutdown();
if (nStopAtHeight && pindexNewTip && pindexNewTip->nHeight >= nStopAtHeight) StartShutdown();

return true;
}

Loading…
Cancel
Save