Browse Source

Fixed constructor initialization warnings.

Fixed nameSpace variable assignment used in keva_filter.
cn
Jianping Wu 5 years ago
parent
commit
bf62b97a6a
  1. 2
      src/keva/common.cpp
  2. 4
      src/rpc/rpckeva_nonwallet.cpp

2
src/keva/common.cpp

@ -91,7 +91,7 @@ public:
}; };
CCacheKeyIterator::CCacheKeyIterator(const CKevaCache& c, CKevaIterator* b) CCacheKeyIterator::CCacheKeyIterator(const CKevaCache& c, CKevaIterator* b)
: cache(c), base(b), CKevaIterator(b->getNamespace()) : CKevaIterator(b->getNamespace()), cache(c), base(b)
{ {
/* Add a seek-to-start to ensure that everything is consistent. This call /* Add a seek-to-start to ensure that everything is consistent. This call
may be superfluous if we seek to another position afterwards anyway, may be superfluous if we seek to another position afterwards anyway,

4
src/rpc/rpckeva_nonwallet.cpp

@ -108,7 +108,7 @@ std::string getKevaInfoHelp (const std::string& indent, const std::string& trail
/** /**
* Utility routine to construct a "name info" object to return. This is used * Utility routine to construct a "name info" object to return. This is used
* for name_show and also name_list. * for keva_filter.
* @param name The name. * @param name The name.
* @param value The name's value. * @param value The name's value.
* @param outp The last update's outpoint. * @param outp The last update's outpoint.
@ -172,7 +172,6 @@ UniValue keva_filter(const JSONRPCRequest& request)
" ...\n" " ...\n"
"]\n" "]\n"
"\nExamples:\n" "\nExamples:\n"
+ HelpExampleCli ("keva_filter", "\"\" 5")
+ HelpExampleCli ("keva_filter", "\"^id/\"") + HelpExampleCli ("keva_filter", "\"^id/\"")
+ HelpExampleCli ("keva_filter", "\"^id/\" 36000 0 0 \"stat\"") + HelpExampleCli ("keva_filter", "\"^id/\" 36000 0 0 \"stat\"")
+ HelpExampleRpc ("keva_filter", "\"^d/\"") + HelpExampleRpc ("keva_filter", "\"^d/\"")
@ -202,7 +201,6 @@ UniValue keva_filter(const JSONRPCRequest& request)
if (request.params.size() >= 1) { if (request.params.size() >= 1) {
const std::string namespaceStr = request.params[0].get_str(); const std::string namespaceStr = request.params[0].get_str();
valtype nameSpace;
if (!DecodeKevaNamespace(namespaceStr, Params(), nameSpace)) { if (!DecodeKevaNamespace(namespaceStr, Params(), nameSpace)) {
throw JSONRPCError (RPC_INVALID_PARAMETER, "invalid namespace id"); throw JSONRPCError (RPC_INVALID_PARAMETER, "invalid namespace id");
} }

Loading…
Cancel
Save