From 7bc2142590602da6a5e4bfb1a41436ba94b274dc Mon Sep 17 00:00:00 2001 From: wowario Date: Thu, 8 Nov 2018 18:21:52 +0300 Subject: [PATCH] correct cumulative difficulty count --- src/cryptonote_basic/difficulty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_basic/difficulty.cpp b/src/cryptonote_basic/difficulty.cpp index fbd97df30..530fe81a6 100644 --- a/src/cryptonote_basic/difficulty.cpp +++ b/src/cryptonote_basic/difficulty.cpp @@ -256,9 +256,9 @@ namespace cryptonote { assert(timestamps.size() == cumulative_difficulties.size() && timestamps.size() <= static_cast(N+1) ); - if ( height <= DIFFICULTY_HEIGHT ){ + /*if ( height <= DIFFICULTY_HEIGHT ){ return static_cast(DIFFICULTY_GUESS); - } + }*/ for ( int64_t i = 1; i <= N; i++ ) { ST = static_cast(timestamps[i]) - static_cast(timestamps[i-1]);