3#include <xrpld/rpc/detail/MPT.h>
4#include <xrpld/rpc/detail/TrustLine.h>
6#include <xrpl/basics/CountedObject.h>
7#include <xrpl/basics/hardened_hash.h>
8#include <xrpl/ledger/Ledger.h>
A generic endpoint for log messages.
AssetCache(std::shared_ptr< ReadView const > l, beast::Journal j)
std::shared_ptr< std::vector< PathFindTrustLine > > getRippleLines(AccountID const &accountID, LineDirection direction)
Find the trust lines associated with an account.
hash_map< AccountID, std::shared_ptr< std::vector< PathFindMPT > > > mpts_
std::shared_ptr< std::vector< PathFindMPT > > const & getMPTs(AccountID const &account)
xrpl::HardenedHash hasher_
hash_map< AccountKey, std::shared_ptr< std::vector< PathFindTrustLine > >, AccountKey::Hash > lines_
std::shared_ptr< ReadView const > const & getLedger() const
std::size_t totalLineCount_
std::shared_ptr< ReadView const > ledger_
Seed functor once per construction.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
LineDirection
Describes how an account was found in a path, and how to find the next set of paths.
std::unordered_map< Key, Value, Hash, Pred, Allocator > hash_map
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
std::size_t operator()(AccountKey const &key) const noexcept
AccountKey & operator=(AccountKey const &other)=default
bool operator==(AccountKey const &lhs) const
std::size_t getHash() const
AccountKey(AccountKey const &other)=default
AccountKey(AccountID const &account, LineDirection direction, std::size_t hash)