diff --git a/src/main.cpp b/src/main.cpp index b9aecf769..d84fbb33c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2051,9 +2051,13 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin const CChainParams& chainparams = Params(); AssertLockHeld(cs_main); - int64_t FORK_HEIGHT = 235555; - // now = 232143 + int64_t FORK_HEIGHT = 232173; + // hit the pause button + if(pindex->nHeight > FORK_HEIGHT) { + printf("Past fork height, sleepytime!\n"); + return false; + } bool fExpensiveChecks = true; if (fCheckpointsEnabled) { CBlockIndex *pindexLastCheckpoint = Checkpoints::GetLastCheckpoint(chainparams.Checkpoints()); @@ -2063,13 +2067,6 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin } } - // hit the pause button - if(pindex->nHeight == FORK_HEIGHT) { - while(1) { - sleep(1); - } - } - auto verifier = libzcash::ProofVerifier::Strict(); auto disabledVerifier = libzcash::ProofVerifier::Disabled();