From c9326196b257d8f3f8c09ee98ea41057360e56f8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 6 Aug 2019 01:08:24 -1100 Subject: [PATCH] Bits not timestamp! --- 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 58226f719..91c94893d 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -427,7 +427,7 @@ UniValue genminingCSV(const UniValue& params, bool fHelp) hash = pindex->GetBlockHash(); for (z=0; z<16; z++) sprintf(&str2[z<<1],"%02x",((uint8_t *)&hash)[31-z]); - str2[32] = 0; fprintf(fp,"%d,%08x,%u,%s,%s,%.1f,%.1f,%d\n",i,pindex->nTime,pindex->nBits,str,str2,GetDifficulty(pindex),GetNetworkDifficulty(pindex),prevtime==0?0:(int32_t)(pindex->nTime-prevtime)); + 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),prevtime==0?0:(int32_t)(pindex->nTime-prevtime)); prevtime = pindex->nTime; } }