mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 15:05:55 +01:00
Add -stopatheight for benchmarking
This commit is contained in:
@@ -2537,6 +2537,9 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
|
||||
return false;
|
||||
}
|
||||
|
||||
int nStopAtHeight = GetArg("-stopatheight", DEFAULT_STOPATHEIGHT);
|
||||
if (nStopAtHeight && pindexNewTip->nHeight >= nStopAtHeight) StartShutdown();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user