mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
70d3945
Fix potential NPD introduced inb297426c
(Matt Corallo) Tree-SHA512: 920d03d2081ba2f3447cfa655dcbc3e17858454dab051436f717ada977d4f4bfe999c303018bc8aa33f30e37a97c63d70ba08632f5e7b7a8aa555615dde2191a
This commit is contained in:
parent
0326e21a80
commit
82feee353a
@ -2965,7 +2965,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…
Reference in New Issue
Block a user