Fixed keva_group_get parameter checking.

This commit is contained in:
Just Wonder 2020-06-15 16:04:40 -07:00
parent d9f6e58e21
commit cd1f3cf0e2

View File

@ -184,7 +184,7 @@ void getNamespaceGroup(const valtype& nameSpace, std::set<valtype>& namespaces,
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 (
"keva_group_get \"namespace\" \"key\" \"initiator\"\n"
"\nGet value of the given key from the namespace and other namespaces in the same group.\n"