From f4b2078f721887b8b913464e197f6eaae9086938 Mon Sep 17 00:00:00 2001 From: Shaul Kfir Date: Mon, 2 Feb 2015 12:30:56 -0500 Subject: [PATCH] Replace difficulty readjustment blocks with Interval() --- src/rpcmining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 5df5de66d9416..f1c4016575ebc 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -44,7 +44,7 @@ Value GetNetworkHashPS(int lookup, int height) { // If lookup is -1, then use blocks since last difficulty change. if (lookup <= 0) - lookup = pb->nHeight % 2016 + 1; + lookup = pb->nHeight % Params().Interval() + 1; // If lookup is larger than chain, then set it to chain length. if (lookup > pb->nHeight)