Fix c script
This commit is contained in:
@@ -148,9 +148,6 @@ static const CRPCConvertParam vRPCConvertParams[] =
|
|||||||
{ "getproofroot", 2},
|
{ "getproofroot", 2},
|
||||||
{ "height_MoM", 1},
|
{ "height_MoM", 1},
|
||||||
{ "calc_MoM", 2},
|
{ "calc_MoM", 2},
|
||||||
{ "rewardscreatefunding", 3},
|
|
||||||
{ "rewardscreatefunding", 4},
|
|
||||||
{ "rewardscreatefunding", 5},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class CRPCConvertTable
|
class CRPCConvertTable
|
||||||
@@ -195,7 +192,7 @@ UniValue ParseNonRFCJSONValue(const std::string& strVal)
|
|||||||
UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams)
|
UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams)
|
||||||
{
|
{
|
||||||
UniValue params(UniValue::VARR);
|
UniValue params(UniValue::VARR);
|
||||||
fprintf(stderr,"strParams.size() %d\n",(int32_t)strParams.size());
|
|
||||||
for (unsigned int idx = 0; idx < strParams.size(); idx++) {
|
for (unsigned int idx = 0; idx < strParams.size(); idx++) {
|
||||||
const std::string& strVal = strParams[idx];
|
const std::string& strVal = strParams[idx];
|
||||||
|
|
||||||
|
|||||||
@@ -4972,7 +4972,6 @@ UniValue rewardscreatefunding(const UniValue& params, bool fHelp)
|
|||||||
mindeposit = 100 * COIN;
|
mindeposit = 100 * COIN;
|
||||||
name = (char *)params[0].get_str().c_str();
|
name = (char *)params[0].get_str().c_str();
|
||||||
funds = atof(params[1].get_str().c_str()) * COIN;
|
funds = atof(params[1].get_str().c_str()) * COIN;
|
||||||
fprintf(stderr,"params.size() %d\n",(int32_t)params.size());
|
|
||||||
if ( params.size() > 2 )
|
if ( params.size() > 2 )
|
||||||
{
|
{
|
||||||
APR = atof(params[2].get_str().c_str()) * COIN;
|
APR = atof(params[2].get_str().c_str()) * COIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user