1#include <xrpld/app/paths/AccountCurrencies.h>
17 if (
auto const lines =
20 for (
auto const& rspEntry : *lines)
22 auto& saBalance = rspEntry.getBalance();
25 if (saBalance > beast::zero
28 (rspEntry.getLimitPeer()
30 && ((-saBalance) < rspEntry.getLimitPeer())))
32 currencies.
insert(saBalance.getCurrency());
53 if (
auto const lines =
56 for (
auto const& rspEntry : *lines)
58 auto& saBalance = rspEntry.getBalance();
60 if (saBalance < rspEntry.getLimit())
61 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.