From bf44de39a711f438cb78d053ff76623088ee718a Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Aug 2019 00:48:17 -1100 Subject: [PATCH] Print --- src/rpc/mining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 00af7fd4b..1d44a791a 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -429,7 +429,7 @@ UniValue genminingCSV(const UniValue& params, bool fHelp) //hash = pindex->GetBlockHash(); memset(&hash,0,sizeof(hash)); if ( i > 64 && (pindex->nBits & 3) != 0 ) - hash = zawy_ctB(bnTarget,solvetime); + hash = ArithToUint256(zawy_ctB(bnTarget,solvetime)); for (z=0; z<16; z++) sprintf(&str2[z<<1],"%02x",((uint8_t *)&hash)[31-z]); str2[32] = 0; fprintf(fp,"%d,%u,%08x,%s,%s,%.1f,%.1f,%d\n",i,pindex->nTime,pindex->nBits,str,str2,GetDifficulty(pindex),GetNetworkDifficulty(pindex),solvetime);