Skip to content

Commit

Permalink
getmempooltxs rpc interface fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jun 12, 2024
1 parent 40d9bf0 commit c76d862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/rpc/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "getusedcoinserials", 0 },
{ "getlatestcoinids", 0 },
{ "getsparkmintmetadata", 0 },
{ "getmempooltxs", 0 },

//Lelantus
{ "mintspark", 0 },
Expand Down
6 changes: 3 additions & 3 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1525,12 +1525,12 @@ UniValue getmempooltxs(const JSONRPCRequest& request)
"{\n"
" \"txdata\" (Pair<string,int>) nHeight and id for each coin\n"
"}\n"
+ HelpExampleCli("getmempooltxs", "'{[\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'")
+ HelpExampleRpc("getmempooltxs", "{[\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}")
+ HelpExampleCli("getmempooltxs", "'{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'")
+ HelpExampleRpc("getmempooltxs", "{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}")

);

UniValue txids = request.params[0].get_obj();
UniValue txids = find_value(request.params[0].get_obj(), "txids");

UniValue result(UniValue::VARR);
for(UniValue const & element : txids.getValues()){
Expand Down

0 comments on commit c76d862

Please sign in to comment.