Remove recursions from computeLiquidity

This commit is contained in:
Tom Ritchford
2014-06-25 11:51:50 -04:00
committed by Nik Bougalis
parent d307568cbc
commit a96dee85d2
5 changed files with 80 additions and 78 deletions

View File

@@ -58,27 +58,28 @@ TER rippleCalculate (
// XRP: xrpIssuer()
// non-XRP: uSrcAccountID (for any issuer) or another account with trust
// node.
const STAmount& saMaxAmountReq, // --> -1 = no limit.
STAmount const& saMaxAmountReq, // --> -1 = no limit.
// Issuer:
// XRP: xrpIssuer()
// non-XRP: uDstAccountID (for any issuer) or another account with trust
// node.
const STAmount& saDstAmountReq,
STAmount const& saDstAmountReq,
Account const& uDstAccountID,
Account const& uSrcAccountID,
// A set of paths that are included in the transaction that we'll explore
// for liquidity.
const STPathSet& spsPaths,
const bool bPartialPayment,
const bool bLimitQuality,
const bool bNoRippleDirect,
const bool bStandAlone,
STPathSet const& spsPaths,
bool const bPartialPayment,
bool const bLimitQuality,
bool const bNoRippleDirect,
bool const bStandAlone,
// True, not to delete unfundeds.
const bool bOpenLedger)
bool const bOpenLedger)
{
assert (activeLedger.isValid ());
RippleCalc rc (activeLedger, bOpenLedger);