File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ unsigned int static DarkGravityWave(const CBlockIndex* pindexLast, const CBlockH
109109 if (pindexLast->nChainWork >= UintToArith256 (uint256S (" 0x000000000000000000000000000000000000000000000000003ff00000000000" ))
110110 // and immediately on devnet
111111 || !params.hashDevnetGenesisBlock .IsNull ()) {
112+ // recent block is more than 2 hours old
113+ if (pblock->GetBlockTime () > pindexLast->GetBlockTime () + 2 * 60 * 60 ) {
114+ return bnPowLimit.GetCompact ();
115+ }
116+ // recent block is more than 10 minutes old
112117 if (pblock->GetBlockTime () > pindexLast->GetBlockTime () + params.nPowTargetSpacing *4 ) {
113118 arith_uint256 bnNew = arith_uint256 ().SetCompact (pindexLast->nBits ) * 10 ;
114119 if (bnNew > bnPowLimit) {
You can’t perform that action at this time.
0 commit comments