Browse Source

Fixed keva_group_get parameter checking.

views
Just Wonder 4 years ago
parent
commit
cd1f3cf0e2
  1. 2
      src/rpc/rpckeva_nonwallet.cpp

2
src/rpc/rpckeva_nonwallet.cpp

@ -184,7 +184,7 @@ void getNamespaceGroup(const valtype& nameSpace, std::set<valtype>& namespaces,
UniValue keva_group_get(const JSONRPCRequest& request) UniValue keva_group_get(const JSONRPCRequest& request)
{ {
if (request.fHelp || request.params.size() != 2) { if (request.fHelp || request.params.size() < 2) {
throw std::runtime_error ( throw std::runtime_error (
"keva_group_get \"namespace\" \"key\" \"initiator\"\n" "keva_group_get \"namespace\" \"key\" \"initiator\"\n"
"\nGet value of the given key from the namespace and other namespaces in the same group.\n" "\nGet value of the given key from the namespace and other namespaces in the same group.\n"

Loading…
Cancel
Save