This commit is contained in:
jl777
2016-11-23 13:33:28 -03:00
parent 14ecdc679f
commit 55ecfab2cc
2 changed files with 4 additions and 4 deletions

View File

@@ -396,8 +396,8 @@ Value minerids(const Array& params, bool fHelp)
throw runtime_error("minerids needs height\n"); throw runtime_error("minerids needs height\n");
LOCK(cs_main); LOCK(cs_main);
int32_t height = atoi(params[0].get_str().c_str()); int32_t height = atoi(params[0].get_str().c_str());
if ( height < 0 ) if ( height <= 0 )
height = 0; height = chainActive.Tip()->nHeight;
if ( (n= komodo_minerids(minerids,height)) > 0 && n <= 64 ) if ( (n= komodo_minerids(minerids,height)) > 0 && n <= 64 )
{ {
memset(tally,0,sizeof(tally)); memset(tally,0,sizeof(tally));

View File

@@ -108,7 +108,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "z_importkey", 1 }, { "z_importkey", 1 },
{ "paxprice", 4 }, { "paxprice", 4 },
{ "paxprices", 3 }, { "paxprices", 3 },
{ "paxpending", 3 }, { "paxpending", 0 },
{ "notaries", 1 }, { "notaries", 1 },
{ "minerids", 1 }, { "minerids", 1 },
}; };