mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add RPC filters for Escrow an PayChan (RIPD-1414)
This commit is contained in:
committed by
Nik Bougalis
parent
1a7a6f22e2
commit
aea54b7230
@@ -159,6 +159,7 @@ JSS ( error ); // out: error
|
||||
JSS ( error_code ); // out: error
|
||||
JSS ( error_exception ); // out: Submit
|
||||
JSS ( error_message ); // out: error
|
||||
JSS ( escrow ); // in: LedgerEntry
|
||||
JSS ( expand ); // in: handler/Ledger
|
||||
JSS ( expected_ledger_size ); // out: TxQ
|
||||
JSS ( expiration ); // out: AccountOffers, AccountChannels
|
||||
@@ -314,6 +315,7 @@ JSS ( password ); // in: Subscribe
|
||||
JSS ( paths ); // in: RipplePathFind
|
||||
JSS ( paths_canonical ); // out: RipplePathFind
|
||||
JSS ( paths_computed ); // out: PathRequest, RipplePathFind
|
||||
JSS ( payment_channel ); // in: LedgerEntry
|
||||
JSS ( peer ); // in: AccountLines
|
||||
JSS ( peer_authorized ); // out: AccountLines
|
||||
JSS ( peer_id ); // out: RCLCxPeerPos
|
||||
|
||||
@@ -177,17 +177,19 @@ chooseLedgerEntryType(Json::Value const& params)
|
||||
if (params.isMember(jss::type))
|
||||
{
|
||||
static
|
||||
std::array<std::pair<char const *, LedgerEntryType>, 9> const types
|
||||
std::array<std::pair<char const *, LedgerEntryType>, 11> const types
|
||||
{{
|
||||
{ jss::account, ltACCOUNT_ROOT },
|
||||
{ jss::amendments, ltAMENDMENTS },
|
||||
{ jss::directory, ltDIR_NODE },
|
||||
{ jss::fee, ltFEE_SETTINGS },
|
||||
{ jss::hashes, ltLEDGER_HASHES },
|
||||
{ jss::offer, ltOFFER },
|
||||
{ jss::signer_list, ltSIGNER_LIST },
|
||||
{ jss::state, ltRIPPLE_STATE },
|
||||
{ jss::ticket, ltTICKET }
|
||||
{ jss::account, ltACCOUNT_ROOT },
|
||||
{ jss::amendments, ltAMENDMENTS },
|
||||
{ jss::directory, ltDIR_NODE },
|
||||
{ jss::fee, ltFEE_SETTINGS },
|
||||
{ jss::hashes, ltLEDGER_HASHES },
|
||||
{ jss::offer, ltOFFER },
|
||||
{ jss::signer_list, ltSIGNER_LIST },
|
||||
{ jss::state, ltRIPPLE_STATE },
|
||||
{ jss::ticket, ltTICKET },
|
||||
{ jss::escrow, ltESCROW },
|
||||
{ jss::payment_channel, ltPAYCHAN }
|
||||
}};
|
||||
|
||||
auto const& p = params[jss::type];
|
||||
|
||||
Reference in New Issue
Block a user