20 #include <ripple/app/paths/RippleLineCache.h>
21 #include <ripple/app/paths/TrustLine.h>
22 #include <ripple/ledger/OpenView.h>
33 JLOG(
journal_.
debug()) <<
"RippleLineCache created for ledger "
39 JLOG(
journal_.
debug()) <<
"~RippleLineCache destroyed for ledger "
56 JLOG(
journal_.
debug()) <<
"RippleLineCache getRippleLines for ledger "
57 <<
mLedger->info().seq <<
" found "
58 << it->second.size() <<
" lines for "
59 << (inserted ?
"new " :
"existing ") << accountID
60 <<
" out of a total of " <<
lines_.size()
std::shared_ptr< ReadView const > mLedger
static std::vector< PathFindTrustLine > getItems(AccountID const &accountID, ReadView const &view)
A generic endpoint for log messages.
std::vector< PathFindTrustLine > const & getRippleLines(AccountID const &accountID)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
RippleLineCache(std::shared_ptr< ReadView const > const &l, beast::Journal j)
ripple::hardened_hash hasher_
hash_map< AccountKey, std::vector< PathFindTrustLine >, AccountKey::Hash > lines_