Skip to content

Commit

Permalink
Review comments applied
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jun 17, 2024
1 parent 973eefe commit e7f6931
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1488,11 +1488,11 @@ UniValue getsparklatestcoinid(const JSONRPCRequest& request)
return UniValue(latestCoinId);
}

UniValue getmempooltxids(const JSONRPCRequest& request)
UniValue getmempoolsparktxids(const JSONRPCRequest& request)
{
if (request.fHelp || request.params.size() != 0)
throw std::runtime_error(
"getmempooltxids\n"
"getmempoolsparktxids\n"
"\nReturns all mempool transaction ids.\n"
);

Expand All @@ -1507,11 +1507,11 @@ UniValue getmempooltxids(const JSONRPCRequest& request)
return result;
}

UniValue getmempooltxs(const JSONRPCRequest& request)
UniValue getmempoolsparktxs(const JSONRPCRequest& request)
{
if (request.fHelp || request.params.size() != 1)
throw std::runtime_error(
"getmempooltxs\n"
"getmempoolsparktxs\n"
"\nReturns spark data for each transaction.\n"
"\nArguments:\n"
" \"txids\"\n"
Expand All @@ -1525,8 +1525,8 @@ UniValue getmempooltxs(const JSONRPCRequest& request)
"{\n"
" \"txdata\" (Pair<string,int>) nHeight and id for each coin\n"
"}\n"
+ HelpExampleCli("getmempooltxs", "'{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'")
+ HelpExampleRpc("getmempooltxs", "{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}")
+ HelpExampleCli("getmempoolsparktxs", "'{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'")
+ HelpExampleRpc("getmempoolsparktxs", "{\"txids\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}")

);

Expand Down Expand Up @@ -1920,8 +1920,8 @@ static const CRPCCommand commands[] =
{ "mobile", "getusedcoinstags", &getusedcoinstags, false },
{ "mobile", "getusedcoinstagstxhashes", &getusedcoinstagstxhashes, false },
{ "mobile", "getsparklatestcoinid", &getsparklatestcoinid, true },
{ "mobile", "getmempooltxids", &getmempooltxids, true },
{ "mobile", "getmempooltxs", &getmempooltxs, true },
{ "mobile", "getmempoolsparktxids", &getmempoolsparktxids, true },
{ "mobile", "getmempoolsparktxs", &getmempoolsparktxs, true },

{ "mobile", "checkifmncollateral", &checkifmncollateral, false },

Expand Down
4 changes: 2 additions & 2 deletions src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ static const CRPCCommand vRPCCommands[] =
{ "mobile", "getusedcoinstags", &getusedcoinstags, false },
{ "mobile", "getusedcoinstagstxhashes", &getusedcoinstagstxhashes, false },
{ "mobile", "getsparklatestcoinid", &getsparklatestcoinid, true },
{ "mobile", "getmempooltxids", &getmempooltxids, true },
{ "mobile", "getmempooltxs", &getmempooltxs, true },
{ "mobile", "getmempoolsparktxids", &getmempoolsparktxids, true },
{ "mobile", "getmempoolsparktxs", &getmempoolsparktxs, true },


{ "mobile", "checkifmncollateral", &checkifmncollateral, false },
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ extern UniValue getsparkmintmetadata(const JSONRPCRequest& params);
extern UniValue getusedcoinstags(const JSONRPCRequest& params);
extern UniValue getusedcoinstagstxhashes(const JSONRPCRequest& params);
extern UniValue getsparklatestcoinid(const JSONRPCRequest& params);
extern UniValue getmempooltxids(const JSONRPCRequest& params);
extern UniValue getmempooltxs(const JSONRPCRequest& params);
extern UniValue getmempoolsparktxids(const JSONRPCRequest& params);
extern UniValue getmempoolsparktxs(const JSONRPCRequest& params);

extern UniValue checkifmncollateral(const JSONRPCRequest& params);

Expand Down

0 comments on commit e7f6931

Please sign in to comment.