Skip to content

Commit

Permalink
Use "registered" as default for "protx list" (#2513)
Browse files Browse the repository at this point in the history
"wallet" was confusing too many users as it shows an empty list if the local
wallet does not own any keys for any MN.
  • Loading branch information
codablock authored and UdjinM6 committed Nov 29, 2018
1 parent f965634 commit 5da4c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/rpcevo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void protx_list_help()
throw std::runtime_error(
"protx list (\"type\")\n"
"\nLists all ProTxs in your wallet or on-chain, depending on the given type. If \"type\" is not\n"
"specified, it defaults to \"wallet\". All types have the optional argument \"detailed\" which if set to\n"
"specified, it defaults to \"registered\". All types have the optional argument \"detailed\" which if set to\n"
"\"true\" will result in a detailed list to be returned. If set to \"false\", only the hashes of the ProTx\n"
"will be returned.\n"
"\nAvailable types:\n"
Expand Down Expand Up @@ -701,7 +701,7 @@ UniValue protx_list(const JSONRPCRequest& request)
protx_list_help();
}

std::string type = "wallet";
std::string type = "registered";
if (request.params.size() > 1) {
type = request.params[1].get_str();
}
Expand Down

0 comments on commit 5da4c97

Please sign in to comment.