From b297426c9670fa83a12096f9db5666c15e1bb806 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 27 Apr 2017 12:25:13 -0700 Subject: Add -stopatheight for benchmarking --- src/validation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 6c60be45a1..8613241d68 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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; } -- cgit v1.2.3