mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Output computed paths for RPC ripple_path_find.
This commit is contained in:
@@ -1165,8 +1165,8 @@ Json::Value RPCHandler::doRipplePathFind(Json::Value jvRequest)
|
||||
STAmount saMaxAmount(
|
||||
uSrcCurrencyID,
|
||||
!!uSrcIssuerID
|
||||
? uSrcIssuerID
|
||||
: !!uSrcCurrencyID
|
||||
? uSrcIssuerID // Use specifed issuer.
|
||||
: !!uSrcCurrencyID // Default to source account.
|
||||
? raSrc.getAccountID()
|
||||
: ACCOUNT_XRP,
|
||||
1);
|
||||
@@ -1213,6 +1213,7 @@ Json::Value RPCHandler::doRipplePathFind(Json::Value jvRequest)
|
||||
jvEntry["source_amount"] = saMaxAmountAct.getJson(0);
|
||||
// jvEntry["paths_expanded"] = vpsExpanded.getJson(0);
|
||||
jvEntry["paths_canonical"] = spsCanonical.getJson(0);
|
||||
jvEntry["paths_computed"] = spsComputed.getJson(0);
|
||||
|
||||
jvArray.append(jvEntry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user