|
|
@ -213,7 +213,7 @@ namespace { |
|
|
|
} // anon namespace
|
|
|
|
|
|
|
|
char ASSETCHAINS_SYMBOL[65] = { "HUSH" }; |
|
|
|
uint32_t HUSH_STOPAT = GetArg("-stopat",0); |
|
|
|
uint32_t HUSH_STOPAT = 0; |
|
|
|
#include "komodo_validation011.h" |
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
@ -2216,8 +2216,10 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin |
|
|
|
{ |
|
|
|
const CChainParams& chainparams = Params(); |
|
|
|
AssertLockHeld(cs_main); |
|
|
|
|
|
|
|
if ( HUSH_STOPAT != 0 && pindex->nHeight > HUSH_STOPAT ) { |
|
|
|
HUSH_STOPAT = GetArg("-stopat",0); |
|
|
|
if (HUSH_STOPAT) |
|
|
|
printf("Going to stopat=%d\n", HUSH_STOPAT); |
|
|
|
if (HUSH_STOPAT != 0 && pindex->nHeight > HUSH_STOPAT) { |
|
|
|
printf("Stopping at block height %d\n", HUSH_STOPAT); |
|
|
|
return(false); |
|
|
|
} |
|
|
|