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