mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
RPC: Fix parsing of ripple options limit and average.
This commit is contained in:
@@ -1451,7 +1451,7 @@ Json::Value RPCServer::doRipple(const Json::Value ¶ms)
|
||||
bLimit = params.size() != iArg ? params[iArg].asString() == "limit" : false;
|
||||
bAverage = params.size() != iArg ? params[iArg].asString() == "average" : false;
|
||||
|
||||
if (!bPartial && !bFull)
|
||||
if (!bLimit && !bAverage)
|
||||
{
|
||||
return RPCError(rpcINVALID_PARAMS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user