test
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -108,6 +108,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
|
||||
{ "z_importkey", 1 },
|
||||
{ "paxprice", 4 },
|
||||
{ "paxprices", 3 },
|
||||
{ "paxpending", 3 },
|
||||
{ "notaries", 1 },
|
||||
};
|
||||
|
||||
|
||||
@@ -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 },
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user