mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add SignerList support to account_objects (RIPD-1061):
Return just SignerList objects on an account using the account_objects RPC command with "type":"signer_list".
This commit is contained in:
committed by
Nik Bougalis
parent
f7b2b84ece
commit
8433851652
@@ -78,6 +78,7 @@ JSS ( affected ); // out: AcceptedLedgerTx
|
|||||||
JSS ( age ); // out: NetworkOPs, Peers
|
JSS ( age ); // out: NetworkOPs, Peers
|
||||||
JSS ( alternatives ); // out: PathRequest, RipplePathFind
|
JSS ( alternatives ); // out: PathRequest, RipplePathFind
|
||||||
JSS ( amendment_blocked ); // out: NetworkOPs
|
JSS ( amendment_blocked ); // out: NetworkOPs
|
||||||
|
JSS ( amendments ); // in: AccountObjects
|
||||||
JSS ( asks ); // out: Subscribe
|
JSS ( asks ); // out: Subscribe
|
||||||
JSS ( assets ); // out: GatewayBalances
|
JSS ( assets ); // out: GatewayBalances
|
||||||
JSS ( authorized ); // out: AccountLines
|
JSS ( authorized ); // out: AccountLines
|
||||||
@@ -176,6 +177,7 @@ JSS ( generator ); // in: LedgerEntry
|
|||||||
JSS ( good ); // out: RPCVersion
|
JSS ( good ); // out: RPCVersion
|
||||||
JSS ( hash ); // out: NetworkOPs, InboundLedger,
|
JSS ( hash ); // out: NetworkOPs, InboundLedger,
|
||||||
// LedgerToJson, STTx; field
|
// LedgerToJson, STTx; field
|
||||||
|
JSS ( hashes ); // in: AccountObjects
|
||||||
JSS ( have_header ); // out: InboundLedger
|
JSS ( have_header ); // out: InboundLedger
|
||||||
JSS ( have_state ); // out: InboundLedger
|
JSS ( have_state ); // out: InboundLedger
|
||||||
JSS ( have_transactions ); // out: InboundLedger
|
JSS ( have_transactions ); // out: InboundLedger
|
||||||
@@ -339,6 +341,7 @@ JSS ( server_state ); // out: NetworkOPs
|
|||||||
JSS ( server_status ); // out: NetworkOPs
|
JSS ( server_status ); // out: NetworkOPs
|
||||||
JSS ( severity ); // in: LogLevel
|
JSS ( severity ); // in: LogLevel
|
||||||
JSS ( signature ); // out: NetworkOPs
|
JSS ( signature ); // out: NetworkOPs
|
||||||
|
JSS ( signer_list ); // in: AccountObjects
|
||||||
JSS ( snapshot ); // in: Subscribe
|
JSS ( snapshot ); // in: Subscribe
|
||||||
JSS ( source_account ); // in: PathRequest, RipplePathFind
|
JSS ( source_account ); // in: PathRequest, RipplePathFind
|
||||||
JSS ( source_amount ); // in: PathRequest, RipplePathFind
|
JSS ( source_amount ); // in: PathRequest, RipplePathFind
|
||||||
@@ -364,6 +367,7 @@ JSS ( taker_gets_funded ); // out: NetworkOPs
|
|||||||
JSS ( taker_pays ); // in: Subscribe, Unsubscribe, BookOffers
|
JSS ( taker_pays ); // in: Subscribe, Unsubscribe, BookOffers
|
||||||
JSS ( taker_pays_funded ); // out: NetworkOPs
|
JSS ( taker_pays_funded ); // out: NetworkOPs
|
||||||
JSS ( threshold ); // in: Blacklist
|
JSS ( threshold ); // in: Blacklist
|
||||||
|
JSS ( ticket ); // in: AccountObjects
|
||||||
JSS ( timeouts ); // out: InboundLedger
|
JSS ( timeouts ); // out: InboundLedger
|
||||||
JSS ( traffic ); // out: Overlay
|
JSS ( traffic ); // out: Overlay
|
||||||
JSS ( totalCoins ); // out: LedgerToJson
|
JSS ( totalCoins ); // out: LedgerToJson
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
namespace ripple {
|
namespace ripple {
|
||||||
|
|
||||||
@@ -80,18 +79,19 @@ Json::Value doAccountObjects (RPC::Context& context)
|
|||||||
if (params.isMember (jss::type))
|
if (params.isMember (jss::type))
|
||||||
{
|
{
|
||||||
static
|
static
|
||||||
std::vector<std::pair<std::string, LedgerEntryType>> const
|
std::array<std::pair<char const *, LedgerEntryType>, 9> const
|
||||||
types
|
types
|
||||||
{
|
{{
|
||||||
{ "account", ltACCOUNT_ROOT },
|
{ jss::account, ltACCOUNT_ROOT },
|
||||||
{ "amendments", ltAMENDMENTS },
|
{ jss::amendments, ltAMENDMENTS },
|
||||||
{ "directory", ltDIR_NODE },
|
{ jss::directory, ltDIR_NODE },
|
||||||
{ "fee", ltFEE_SETTINGS },
|
{ jss::fee, ltFEE_SETTINGS },
|
||||||
{ "hashes", ltLEDGER_HASHES },
|
{ jss::hashes, ltLEDGER_HASHES },
|
||||||
{ "offer", ltOFFER },
|
{ jss::offer, ltOFFER },
|
||||||
{ "state", ltRIPPLE_STATE },
|
{ jss::signer_list, ltSIGNER_LIST },
|
||||||
{ "ticket", ltTICKET }
|
{ jss::state, ltRIPPLE_STATE },
|
||||||
};
|
{ jss::ticket, ltTICKET }
|
||||||
|
}};
|
||||||
|
|
||||||
auto const& p = params[jss::type];
|
auto const& p = params[jss::type];
|
||||||
if (! p.isString ())
|
if (! p.isString ())
|
||||||
|
|||||||
Reference in New Issue
Block a user