Skip to content

Commit

Permalink
Fix rpc help strings
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Nov 17, 2023
1 parent f6f6c0f commit a6e073b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/rpc/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "getmintmetadata", 0 },
{ "getusedcoinserials", 0 },
{ "getlatestcoinids", 0 },
{ "getsparkmintmetadata", 0 },

//Lelantus
{ "mintspark", 0 },
Expand Down
7 changes: 5 additions & 2 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,8 @@ UniValue getsparkanonymityset(const JSONRPCRequest& request)
" \"setHash\" (string) Anonymity set hash\n"
" \"mints\" (Pair<string, string>) Serialized Spark coin paired with txhash\n"
"}\n"
+ HelpExampleCli("getsparkanonymityset", "\"1\"" "{\"ca511f07489e35c9bc60ca62c82de225ba7aae7811ce4c090f95aa976639dc4e\"}")
+ HelpExampleRpc("getsparkanonymityset", "\"1\"" "{\"ca511f07489e35c9bc60ca62c82de225ba7aae7811ce4c090f95aa976639dc4e\"}")
+ HelpExampleCli("getsparkanonymityset", "\"1\" " "{\"ca511f07489e35c9bc60ca62c82de225ba7aae7811ce4c090f95aa976639dc4e\"}")
+ HelpExampleRpc("getsparkanonymityset", "\"1\" " "{\"ca511f07489e35c9bc60ca62c82de225ba7aae7811ce4c090f95aa976639dc4e\"}")
);


Expand Down Expand Up @@ -1246,6 +1246,9 @@ UniValue getsparkmintmetadata(const JSONRPCRequest& request)
"{\n"
" \"metadata\" (Pair<string,int>) nHeight and id for each coin\n"
"}\n"
+ HelpExampleCli("getsparkmintmetadata", "'{\"coinHashes\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}'")
+ HelpExampleRpc("getsparkmintmetadata", "{\"coinHashes\": [\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\",\"b476ed2b374bb081ea51d111f68f0136252521214e213d119b8dc67b92f5a390\"]}")

);

UniValue coinHashes = find_value(request.params[0].get_obj(), "coinHashes");
Expand Down

0 comments on commit a6e073b

Please sign in to comment.