mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add -stopatheight for benchmarking
This commit is contained in:
parent
a550f6e415
commit
b297426c96
3 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue