20 #include <ripple/app/paths/Pathfinder.h>
21 #include <ripple/protocol/jss.h>
22 #include <test/jtx/paths.h>
32 auto const from = env.
lookup(jv[jss::Account].asString());
33 auto const to = env.
lookup(jv[jss::Destination].asString());
36 std::make_shared<RippleLineCache>(
54 if (!found.isDefault())
70 jv[
"account"] =
toBase58(account.id());
Calculates payment paths.
ripple::Currency currency
void computePathRanks(int maxPaths, std::function< bool(void)> const &continueCallback={})
Compute the rankings of the paths.
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
void append_one(Account const &account)
bool findPaths(int searchLevel, std::function< bool(void)> const &continueCallback={})
void operator()(Env &, JTx &jt) const
Value & append(const Value &value)
Append value to array at the end.
@ objectValue
object value (collection of name/value pairs).
Execution context for applying a JSON transaction.
Account const & lookup(AccountID const &id) const
Returns the Account given the AccountID.
STAmount amountFromJson(SField const &name, Json::Value const &v)
STPathSet getBestPaths(int maxPaths, STPath &fullLiquidityPath, STPathSet const &extraPaths, AccountID const &srcIssuer, std::function< bool(void)> const &continueCallback={})
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual beast::Journal journal(std::string const &name)=0
Converts to IOU Issue or STAmount.
Json::Value getJson(JsonOptions) const override
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
Immutable cryptographic account descriptor.
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
A transaction testing environment.
void operator()(Env &, JTx &jt) const