mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow partialPayment with path_find
This commit is contained in:
committed by
Vinnie Falco
parent
094f08211a
commit
654084d181
@@ -477,11 +477,15 @@ PathRequest::findPaths (
|
||||
m_journal.debug << iIdentifier
|
||||
<< " Paths found, calling rippleCalc";
|
||||
|
||||
path::RippleCalc::Input rcInput;
|
||||
if (convert_all_)
|
||||
rcInput.partialPaymentAllowed = true;
|
||||
|
||||
auto rc = path::RippleCalc::rippleCalculate(
|
||||
*sandbox, saMaxAmount,
|
||||
convert_all_ ? STAmount(saDstAmount.issue(), STAmount::cMaxValue,
|
||||
STAmount::cMaxOffset) : saDstAmount,
|
||||
*raDstAccount, *raSrcAccount, *result);
|
||||
*raDstAccount, *raSrcAccount, *result, &rcInput);
|
||||
|
||||
if (! convert_all_ &&
|
||||
! fullLiquidityPath.empty() &&
|
||||
|
||||
Reference in New Issue
Block a user