20#include <xrpld/app/paths/AccountCurrencies.h> 
   36    if (
auto const lines =
 
   39        for (
auto const& rspEntry : *lines)
 
   41            auto& saBalance = rspEntry.getBalance();
 
   44            if (saBalance > beast::zero
 
   47                (rspEntry.getLimitPeer()
 
   49                 && ((-saBalance) < rspEntry.getLimitPeer())))  
 
   51                currencies.
insert(saBalance.getCurrency());
 
 
   72    if (
auto const lines =
 
   75        for (
auto const& rspEntry : *lines)
 
   77            auto& saBalance = rspEntry.getBalance();
 
   79            if (saBalance < rspEntry.getLimit())  
 
   80                currencies.
insert(saBalance.getCurrency());
 
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
 
hash_set< Currency > accountDestCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
 
hash_set< Currency > accountSourceCurrencies(AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP)
 
Currency const & xrpCurrency()
XRP currency.