Browse Source

Merge #10305: Fix potential NPD introduced in b297426c

70d3945 Fix potential NPD introduced in b297426c (Matt Corallo)

Tree-SHA512: 920d03d2081ba2f3447cfa655dcbc3e17858454dab051436f717ada977d4f4bfe999c303018bc8aa33f30e37a97c63d70ba08632f5e7b7a8aa555615dde2191a
tags/v0.15.1
Pieter Wuille 4 years ago
parent
commit
c45da32047
No account linked to committer's email address
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