From 9bd3a9cddcd399e2984e4029505b0bcedce0f048 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 21 Nov 2016 09:48:32 -0300 Subject: [PATCH] test --- src/rpcblockchain.cpp | 6 ++++-- src/rpcclient.cpp | 1 + src/rpcserver.cpp | 1 + src/rpcserver.h | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index da5fd2fdb..8bfb19629 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -436,11 +436,13 @@ Value notaries(const Array& params, bool fHelp) return ret; } -Value withdraws_pending(const Array& params, bool fHelp) +int32_t komodo_pending_withdraws(char *opretstr); + +Value paxpending(const Array& params, bool fHelp) { Object ret; char opretbuf[10000*2]; int32_t opretlen; if ( fHelp || params.size() != 0 ) - throw runtime_error("withdraws_pending needs no args\n"); + throw runtime_error("paxpending needs no args\n"); LOCK(cs_main); if ( (opretlen= komodo_pending_withdraws(opretbuf)) > 0 ) ret.push_back(Pair("withdraws", opretbuf)); diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 30142ee82..adf10ccb7 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -108,6 +108,7 @@ static const CRPCConvertParam vRPCConvertParams[] = { "z_importkey", 1 }, { "paxprice", 4 }, { "paxprices", 3 }, + { "paxpending", 3 }, { "notaries", 1 }, }; diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index e8a9958ce..4f04bdcc1 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -301,6 +301,7 @@ static const CRPCCommand vRPCCommands[] = { "blockchain", "gettxoutsetinfo", &gettxoutsetinfo, true }, { "blockchain", "verifychain", &verifychain, true }, { "blockchain", "paxprice", &paxprice, true }, + { "blockchain", "paxpending", &paxpending, true }, { "blockchain", "paxprices", &paxprices, true }, { "blockchain", "notaries", ¬aries, true }, diff --git a/src/rpcserver.h b/src/rpcserver.h index 765e27747..77a4818bb 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -245,6 +245,7 @@ extern json_spirit::Value gettxoutsetinfo(const json_spirit::Array& params, bool extern json_spirit::Value gettxout(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value notaries(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value paxprice(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value paxpending(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value paxprices(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value paxdeposit(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value paxwithdraw(const json_spirit::Array& params, bool fHelp);