Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/Greg-Griffith/eccoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Griffith committed Oct 9, 2017
2 parents 4f405c9 + 6683910 commit b45af31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "),
Expand Down

0 comments on commit b45af31

Please sign in to comment.