From 489f089ebf19abfe22464e3b986f1d25015112a4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 5 Aug 2019 22:40:31 -1100 Subject: [PATCH] Fix off by 1 --- src/pow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pow.cpp b/src/pow.cpp index 84433f578..67c090aaf 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -290,7 +290,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead { if ( tipdiff < T ) zawyflag = 1; - else if ( tipdiff > 2*T && tipdiff < 3*T ) + else if ( tipdiff > T && tipdiff < 2*T ) zawyflag = 2; else zawyflag = 3; {