mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 20:05:51 +00:00
@@ -45,8 +45,8 @@ struct LedgerTypeAttributes {
|
||||
|
||||
// Ledger entry type filter list, add new types here to support filtering for ledger_data and
|
||||
// account_objects
|
||||
static std::unordered_map<std::string, LedgerTypeAttributes> const LEDGER_TYPES_MAP{
|
||||
{{JS(account), LedgerTypeAttributes(ripple::ltACCOUNT_ROOT)},
|
||||
static std::unordered_map<std::string, LedgerTypeAttributes> const LEDGER_TYPES_MAP{{
|
||||
{JS(account), LedgerTypeAttributes(ripple::ltACCOUNT_ROOT)},
|
||||
{JS(amendments), LedgerTypeAttributes(ripple::ltAMENDMENTS)},
|
||||
{JS(check), LedgerTypeAttributes(ripple::ltCHECK, true)},
|
||||
{JS(deposit_preauth), LedgerTypeAttributes(ripple::ltDEPOSIT_PREAUTH)},
|
||||
@@ -66,8 +66,9 @@ static std::unordered_map<std::string, LedgerTypeAttributes> const LEDGER_TYPES_
|
||||
{JS(xchain_owned_claim_id), LedgerTypeAttributes(ripple::ltXCHAIN_OWNED_CLAIM_ID, true)},
|
||||
{JS(xchain_owned_create_account_claim_id),
|
||||
LedgerTypeAttributes(ripple::ltXCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID, true)},
|
||||
{JS(did), LedgerTypeAttributes(ripple::ltDID)}}
|
||||
};
|
||||
{JS(did), LedgerTypeAttributes(ripple::ltDID)},
|
||||
{JS(oracle), LedgerTypeAttributes(ripple::ltORACLE)},
|
||||
}};
|
||||
} // namespace impl
|
||||
|
||||
std::unordered_set<std::string> const&
|
||||
|
||||
@@ -50,7 +50,8 @@ TEST(LedgerUtilsTests, LedgerObjectTypeList)
|
||||
JS(bridge),
|
||||
JS(xchain_owned_claim_id),
|
||||
JS(xchain_owned_create_account_claim_id),
|
||||
JS(did)
|
||||
JS(did),
|
||||
JS(oracle)
|
||||
};
|
||||
ASSERT_TRUE(std::size(typesList) == types.size());
|
||||
EXPECT_TRUE(std::all_of(std::cbegin(typesList), std::cend(typesList), [&types](auto const& type) {
|
||||
|
||||
Reference in New Issue
Block a user