This commit is contained in:
jl777
2016-11-21 09:43:24 -03:00
parent 0b9b580674
commit 7cc6844b76
2 changed files with 55 additions and 22 deletions

View File

@@ -436,6 +436,18 @@ Value notaries(const Array& params, bool fHelp)
return ret;
}
Value withdraws_pending(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");
LOCK(cs_main);
if ( (opretlen= komodo_pending_withdraws(opretbuf)) > 0 )
ret.push_back(Pair("withdraws", opretbuf));
else ret.push_back(Pair("withdraws", (char *)""));
return ret;
}
Value paxprice(const Array& params, bool fHelp)
{
if ( fHelp || params.size() < 3 || params.size() > 4 )