This commit is contained in:
jl777
2019-08-05 07:13:34 -11:00
parent 8e2fc1c6d9
commit 4a09f0d13e

View File

@@ -408,7 +408,7 @@ CBlockIndex *komodo_chainactive(int32_t height);
UniValue genminingCSV(const UniValue& params, bool fHelp)
{
int32_t i,z,height; FILE *fp; char str[64]; arith_uint256 bnTarget; CBlockIndex *pindex; bool fNegative,fOverflow; UniValue result(UniValue::VOBJ);
if (fHelp || params.size() > 2 || params.size() < 1)
if (fHelp || params.size() != 0 )
throw runtime_error("genminingCSV\n");
LOCK(cs_main);
sprintf(str,"/tmp/%s_mining.csv",ASSETCHAINS_SYMBOL[0] == 0 ? "KMD" : ASSETCHAINS_SYMBOL);