This commit is contained in:
jl777
2019-08-05 21:47:27 -11:00
parent 138e569388
commit bfb2e128f7

View File

@@ -426,8 +426,8 @@ UniValue genminingCSV(const UniValue& params, bool fHelp)
str[32] = 0;
hash = pindex->GetBlockHash();
for (z=0; z<16; z++)
sprintf(&strw[z<<1],"%02x",((uint8_t *)&hash)[31-z]);
strw[32] = 0; fprintf(fp,"%d,%u,%u,%s,%s,%.8f,%.8f\n",i,pindex->nTime,pindex->nBits,str,str2,GetDifficulty(pindex),GetNetworkDifficulty(pindex));
sprintf(&str2[z<<1],"%02x",((uint8_t *)&hash)[31-z]);
str2[32] = 0; fprintf(fp,"%d,%u,%u,%s,%s,%.8f,%.8f\n",i,pindex->nTime,pindex->nBits,str,str2,GetDifficulty(pindex),GetNetworkDifficulty(pindex));
}
}
fclose(fp);