mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix compilation errors in RPC/RipplePathFind.cpp
This commit is contained in:
@@ -154,11 +154,11 @@ Json::Value doRipplePathFind (RPC::Context& context)
|
||||
++level;
|
||||
}
|
||||
|
||||
if (context.params_.isMember("depth")
|
||||
&& context.params_["depth"].isIntegral())
|
||||
if (context.params.isMember("depth")
|
||||
&& context.params["depth"].isIntegral())
|
||||
{
|
||||
int rLev = context.params_["search_depth"].asInt ();
|
||||
if ((rLev < level) || (context.role_ == Config::ADMIN))
|
||||
int rLev = context.params["search_depth"].asInt ();
|
||||
if ((rLev < level) || (context.role == Role::ADMIN))
|
||||
level = rLev;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user