Skip to content

Commit

Permalink
Merge bitcoin#10305: Fix potential NPD introduced in b297426
Browse files Browse the repository at this point in the history
70d3945 Fix potential NPD introduced in b297426 (Matt Corallo)

Tree-SHA512: 920d03d2081ba2f3447cfa655dcbc3e17858454dab051436f717ada977d4f4bfe999c303018bc8aa33f30e37a97c63d70ba08632f5e7b7a8aa555615dde2191a
  • Loading branch information
sipa authored and PastaPastaPasta committed Jun 11, 2019
1 parent c495ca1 commit c27394a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2983,7 +2983,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;
}
Expand Down

0 comments on commit c27394a

Please sign in to comment.