From f4e21be41c2118945916d647803e5847df5049ad Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 29 Jul 2018 04:16:26 -1100 Subject: [PATCH] Fix c script --- src/rpcclient.cpp | 5 +---- src/wallet/rpcwallet.cpp | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp index 18a8782b9..9d1d0b336 100644 --- a/src/rpcclient.cpp +++ b/src/rpcclient.cpp @@ -148,9 +148,6 @@ static const CRPCConvertParam vRPCConvertParams[] = { "getproofroot", 2}, { "height_MoM", 1}, { "calc_MoM", 2}, - { "rewardscreatefunding", 3}, - { "rewardscreatefunding", 4}, - { "rewardscreatefunding", 5}, }; class CRPCConvertTable @@ -195,7 +192,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal) UniValue RPCConvertValues(const std::string &strMethod, const std::vector &strParams) { UniValue params(UniValue::VARR); - fprintf(stderr,"strParams.size() %d\n",(int32_t)strParams.size()); + for (unsigned int idx = 0; idx < strParams.size(); idx++) { const std::string& strVal = strParams[idx]; diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index f7136f43c..96d23447d 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4972,7 +4972,6 @@ UniValue rewardscreatefunding(const UniValue& params, bool fHelp) mindeposit = 100 * COIN; name = (char *)params[0].get_str().c_str(); funds = atof(params[1].get_str().c_str()) * COIN; - fprintf(stderr,"params.size() %d\n",(int32_t)params.size()); if ( params.size() > 2 ) { APR = atof(params[2].get_str().c_str()) * COIN;