diff --git a/src/processblock.cpp b/src/processblock.cpp index c4b35a5c..f811a876 100644 --- a/src/processblock.cpp +++ b/src/processblock.cpp @@ -345,7 +345,7 @@ void CheckForkWarningConditionsOnNewFork(CBlockIndex* pindexNewForkTip) const CBlockIndex *pindexFork = chainActive.FindFork(pindexMostWork); /// temporary security measure against large chain attacks, reorging this many blocks should not occur naturally. a real solution should be implemented - if(pindexOldTip && pindexFork && pindexOldTip->nHeight >= pindexFork->nHeight + COINBASE_MATURITY) + if(origin != LOADED && pindexOldTip && pindexFork && pindexOldTip->nHeight >= pindexFork->nHeight + COINBASE_MATURITY) { LogPrintf("PREVENTING REORGANIZATION OF A DANGEROUSLY LARGE NUMBER OF BLOCKS, IF YOU SEE THIS MESSAGE REPORT IT TO A DEV \n"); return state.DoS(100, error("ActivateBestChainStep(): PREVENTING REORGANIZATION OF A DANGEROUSLY LARGE NUMBER OF BLOCKS, IF YOU SEE THIS MESSAGE REPORT IT TO A DEV "),