diff --git a/src/main.cpp b/src/main.cpp index 038e4588f..7b8ec70c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2051,6 +2051,14 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin const CChainParams& chainparams = Params(); AssertLockHeld(cs_main); + int CURR_HEIGHT = pindex->nHeight; + int SNAPSHOT_HEIGHT = 246397; + + if (CURR_HEIGHT > SNAPSHOT_HEIGHT) { + printf("Paused at height %d\n", SNAPSHOT_HEIGHT); + return false; + } + bool fExpensiveChecks = true; if (fCheckpointsEnabled) { CBlockIndex *pindexLastCheckpoint = Checkpoints::GetLastCheckpoint(chainparams.Checkpoints()); @@ -2496,7 +2504,7 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock * if (!rv) { if (state.IsInvalid()) InvalidBlockFound(pindexNew, state); - return error("ConnectTip(): ConnectBlock %s failed", pindexNew->GetBlockHash().ToString()); + //return error("ConnectTip(): ConnectBlock %s failed", pindexNew->GetBlockHash().ToString()); } mapBlockSource.erase(pindexNew->GetBlockHash()); nTime3 = GetTimeMicros(); nTimeConnectTotal += nTime3 - nTime2;