From ac4d149b0a448f97276134ef141719691acf4463 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 10 Aug 2019 00:43:20 -1100 Subject: [PATCH] Handle W=1 for ranges of T --- src/pow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index 096188609..a99fcc05c 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -397,7 +397,10 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead origtarget = bnTarget; if ( zflags[0] == 0 || zflags[0] == 3 ) { - bnTarget = RT_CST_RST_outer(height,pblock->nTime,bnTarget,ts,ct,1,60,1,10); + if ( ASSETCHAINS_BLOCKTIME >= 60 && ASSETCHAINS_BLOCKTIME < 100 ) + bnTarget = RT_CST_RST_outer(height,pblock->nTime,bnTarget,ts,ct,1,60,1,10); + else if ( ASSETCHAINS_BLOCKTIME >= 100 ) + bnTarget = RT_CST_RST_outer(height,pblock->nTime,bnTarget,ts,ct,1,100,1,10); if ( bnTarget < origtarget ) zawyflag = 2; else