From d26465b0d0db5048aa33a4a8d5ae2f6ee7fb8249 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 12 Dec 2019 17:24:33 -0500 Subject: [PATCH] rpc/server.cpp changes --- src/rpc/server.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 24f6344ef..fc186c67f 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -206,7 +206,7 @@ std::string CRPCTable::help(const std::string& strCommand) const UniValue params; rpcfn_type pfn = pcmd->actor; if (setDone.insert(pfn).second) - (*pfn)(params, true); + (*pfn)(params, true, CPubKey()); } catch (const std::exception& e) { @@ -236,7 +236,7 @@ std::string CRPCTable::help(const std::string& strCommand) const return strRet; } -UniValue help(const UniValue& params, bool fHelp) +UniValue help(const UniValue& params, bool fHelp, const CPubKey& mypk) { if (fHelp || params.size() > 1) throw runtime_error( @@ -264,7 +264,7 @@ void GenerateBitcoins(bool b, CWallet *pw); #endif -UniValue stop(const UniValue& params, bool fHelp) +UniValue stop(const UniValue& params, bool fHelp, const CPubKey& mypk) { char buf[66+128]; // Accept the deprecated and ignored 'detach' boolean argument @@ -429,6 +429,7 @@ static const CRPCCommand vRPCCommands[] = { "nSPV", "nspv_spend", &nspv_spend, true }, { "nSPV", "nspv_broadcast", &nspv_broadcast, true }, { "nSPV", "nspv_logout", &nspv_logout, true }, + { "nSPV", "nspv_listccmoduleunspent", &nspv_listccmoduleunspent, true }, // rewards { "rewards", "rewardslist", &rewardslist, true }, @@ -871,7 +872,7 @@ UniValue CRPCTable::execute(const std::string &strMethod, const UniValue ¶ms try { // Execute - return pcmd->actor(params, false); + return pcmd->actor(params, false, CPubKey()); } catch (const std::exception& e) {