Browse Source

Removed duplicated items in keva namespace group.

views
Just Wonder 4 years ago
parent
commit
44d9933c0f
  1. 4
      src/rpc/rpckeva_nonwallet.cpp

4
src/rpc/rpckeva_nonwallet.cpp

@ -789,6 +789,9 @@ UniValue keva_group_show(const JSONRPCRequest& request) @@ -789,6 +789,9 @@ UniValue keva_group_show(const JSONRPCRequest& request)
if (!isNamespaceGroup(key, targetNS)) {
continue;
}
if (nsList.find(targetNS) != nsList.end()) {
continue;
}
valtype val;
if (mempool.getUnconfirmedKeyValue(nameSpace, key, val) && val.size() > 0) {
CKevaData nsData;
@ -802,6 +805,7 @@ UniValue keva_group_show(const JSONRPCRequest& request) @@ -802,6 +805,7 @@ UniValue keva_group_show(const JSONRPCRequest& request)
obj.pushKV("height", -1);
obj.pushKV("initiator", false);
namespaces.push_back(obj);
nsList.insert(targetNS);
}
}
}

Loading…
Cancel
Save