From f0eeb7efe1cb812a0c11be05d7567cd0c2d5ef25 Mon Sep 17 00:00:00 2001 From: dimxy Date: Mon, 8 Apr 2019 00:23:42 +0500 Subject: [PATCH] added pricesbet rpc --- src/rpc/server.cpp | 1 + src/rpc/server.h | 1 + src/wallet/rpcwallet.cpp | 18 ------------------ 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index 3ed082455..581676763 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -464,6 +464,7 @@ static const CRPCCommand vRPCCommands[] = { "prices", "pricesaddress", &pricesaddress, true }, { "prices", "priceslist", &priceslist, true }, { "prices", "pricesinfo", &pricesinfo, true }, + { "prices", "pricesbet", &pricesbet, true }, // Pegs { "pegs", "pegsaddress", &pegsaddress, true }, diff --git a/src/rpc/server.h b/src/rpc/server.h index 8e0054e6f..3df78de9f 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -497,6 +497,7 @@ extern UniValue paxdeposit(const UniValue& params, bool fHelp); extern UniValue paxwithdraw(const UniValue& params, bool fHelp); extern UniValue prices(const UniValue& params, bool fHelp); +extern UniValue pricesbet(const UniValue& params, bool fHelp); // test rpc: extern UniValue test_ac(const UniValue& params, bool fHelp); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 1f0d1c5ca..96e201bc3 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5848,26 +5848,8 @@ UniValue assetsaddress(const UniValue& params, bool fHelp) return(CCaddress(cp, (char *)"Assets", pubkey)); } -void f(UniValue *p1, UniValue *p2) { - - if (p1) - p1->push_back(make_pair("x", "y")); - - // or... - if (p2) - (*p2).push_back(make_pair("a", "b")); - -} - UniValue tokenaddress(const UniValue& params, bool fHelp) { - UniValue v1(UniValue::VOBJ), v2(UniValue::VOBJ); - f(&v1, &v2); - - std::cerr << v1.getValues()[0].get_str() << std::endl; - std::cerr << v2.getValues()[0].get_str() << std::endl; - - struct CCcontract_info *cp,C; std::vector pubkey; cp = CCinit(&C,EVAL_TOKENS); if ( fHelp || params.size() > 1 )