added pricesbet rpc

This commit is contained in:
dimxy
2019-04-08 00:23:42 +05:00
parent 161b75b7f8
commit f0eeb7efe1
3 changed files with 2 additions and 18 deletions

View File

@@ -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<unsigned char> pubkey;
cp = CCinit(&C,EVAL_TOKENS);
if ( fHelp || params.size() > 1 )