mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-23 05:05:54 +00:00
Add server_info. Make forwardToRippled return optional
This commit is contained in:
@@ -152,9 +152,9 @@ buildResponse(Context const& ctx)
|
||||
if (shouldForwardToRippled(ctx))
|
||||
{
|
||||
auto res = ctx.balancer->forwardToRippled(ctx.params);
|
||||
if (res.size() == 0)
|
||||
if (!res)
|
||||
return Status{Error::rpcFAILED_TO_FORWARD};
|
||||
return res;
|
||||
return *res;
|
||||
}
|
||||
if (ctx.method == "ping")
|
||||
return boost::json::object{};
|
||||
|
||||
Reference in New Issue
Block a user