test
This commit is contained in:
@@ -396,8 +396,8 @@ Value minerids(const Array& params, bool fHelp)
|
||||
throw runtime_error("minerids needs height\n");
|
||||
LOCK(cs_main);
|
||||
int32_t height = atoi(params[0].get_str().c_str());
|
||||
if ( height < 0 )
|
||||
height = 0;
|
||||
if ( height <= 0 )
|
||||
height = chainActive.Tip()->nHeight;
|
||||
if ( (n= komodo_minerids(minerids,height)) > 0 && n <= 64 )
|
||||
{
|
||||
memset(tally,0,sizeof(tally));
|
||||
@@ -421,7 +421,7 @@ Value minerids(const Array& params, bool fHelp)
|
||||
item.push_back(Pair("blocks", tally[i]));
|
||||
a.push_back(item);
|
||||
}
|
||||
Object item;
|
||||
Object item;
|
||||
item.push_back(Pair("pubkey", (char *)"external miners"));
|
||||
item.push_back(Pair("blocks", tally[64]));
|
||||
a.push_back(item);
|
||||
|
||||
Reference in New Issue
Block a user