From 7e5cca6029524182d87a56479e6816c4af3f20ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 5 Aug 2019 22:11:54 -1100 Subject: [PATCH] Test --- src/pow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pow.cpp b/src/pow.cpp index 3d6762304..64d082b2e 100644 --- a/src/pow.cpp +++ b/src/pow.cpp @@ -183,7 +183,7 @@ arith_uint256 zawy_exponential(arith_uint256 bnTarget,int32_t mult) return(bnTarget); } -// 9:53 launch for ZAWY17 +// 10:49 launch for ZAWY17 unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params) { @@ -309,8 +309,13 @@ unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHead else if ( bnTarget < origtarget / arith_uint256(2) ) zawyflag = 2; else zawyflag = 3; - fprintf(stderr,"ht.%d -> zawy.%d\n",height,zawyflag); - } + { + int32_t z; + for (z=31; z>=0; z--) + fprintf(stderr,"%02x",((uint8_t *)&bnTarget)[z]); + } + fprintf(stderr," ht.%d -> zawy.%d\n",height,zawyflag); + } else bnTarget = origtarget; } nbits = bnTarget.GetCompact(); }