From 55ecfab2cce5e3da4d0ba6d6287df357380bf99f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 23 Nov 2016 13:33:28 -0300 Subject: [PATCH] test --- src/rpcblockchain.cpp | 6 +++--- src/rpcclient.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 09d7352b9..4d1dbcde6 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -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); diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 19f159a6e..7375bbdcd 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -108,7 +108,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "z_importkey", 1 }, { "paxprice", 4 }, { "paxprices", 3 }, - { "paxpending", 3 }, + { "paxpending", 0 }, { "notaries", 1 }, { "minerids", 1 }, };