mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move signer_list in JSON response for api_version 2:
See https://github.com/ripple/xrpl-dev-portal/issues/938 for context.
This commit is contained in:
committed by
manojsdoshi
parent
96f11c786e
commit
10d73655bc
@@ -109,8 +109,19 @@ doAccountInfo(RPC::JsonContext& context)
|
||||
if (sleSigners)
|
||||
jvSignerList.append(sleSigners->getJson(JsonOptions::none));
|
||||
|
||||
result[jss::account_data][jss::signer_lists] =
|
||||
std::move(jvSignerList);
|
||||
// Documentation states this is returned as part of the account_info
|
||||
// response, but previously the code put it under account_data. We
|
||||
// can move this to the documentated location from apiVersion 2
|
||||
// onwards.
|
||||
if (context.apiVersion == 1)
|
||||
{
|
||||
result[jss::account_data][jss::signer_lists] =
|
||||
std::move(jvSignerList);
|
||||
}
|
||||
else
|
||||
{
|
||||
result[jss::signer_lists] = std::move(jvSignerList);
|
||||
}
|
||||
}
|
||||
// Return queue info if that is requested
|
||||
if (queue)
|
||||
|
||||
Reference in New Issue
Block a user