Browse Source

test

metaverse
jl777 8 years ago
parent
commit
9bd3a9cddc
  1. 6
      src/rpcblockchain.cpp
  2. 1
      src/rpcclient.cpp
  3. 1
      src/rpcserver.cpp
  4. 1
      src/rpcserver.h

6
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));

1
src/rpcclient.cpp

@ -108,6 +108,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "z_importkey", 1 },
{ "paxprice", 4 },
{ "paxprices", 3 },
{ "paxpending", 3 },
{ "notaries", 1 },
};

1
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", &notaries, true },

1
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);

Loading…
Cancel
Save