From d54c1d533054ed709e0531aa4af468d27f46bd97 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 2 Aug 2019 21:55:48 -1100 Subject: [PATCH] +print --- src/pow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index e48e0aab1..f8e793d95 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -180,7 +180,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead { fprintf(stderr,"ht.%d block12diff %d < %d, make harder\n",(int32_t)pindexLast->GetHeight()+1,block12diff,ASSETCHAINS_BLOCKTIME*11); bnTarget = bnTmp; - } + } else fprintf(stderr,"nothing smaller\n"); } else if ( block12diff > ASSETCHAINS_BLOCKTIME*13 ) { @@ -193,7 +193,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead { fprintf(stderr,"ht.%d block12diff %d > %d, make easier\n",(int32_t)pindexLast->GetHeight()+1,block12diff,ASSETCHAINS_BLOCKTIME*13); bnTarget = bnTmp; - } + } else fprintf(stderr,"nothing bigger\n"); } /*if ( block4diff > 4 && block4diff < ASSETCHAINS_BLOCKTIME ) // for 10x and higher hashrate increases { @@ -202,7 +202,7 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead fprintf(stderr,"ht.%d 4 blocks happened in %d adjust by %.4f\n",(int32_t)pindexLast->GetHeight(),block4diff-((2 * ASSETCHAINS_BLOCKTIME) / 3),(double)block4diff/(ASSETCHAINS_BLOCKTIME*2)); } */ - } + } else fprintf(stderr,"null diff %d %d %d\n",block4diff,block7diff,block12diff); nbits = bnTarget.GetCompact(); } return(nbits);