mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
This commit is contained in:
@@ -1302,9 +1302,16 @@ TER RippleCalc::calcNodeDeliverFwd(
|
|||||||
saInAct.zero(saInReq);
|
saInAct.zero(saInReq);
|
||||||
saInFees.zero(saInReq);
|
saInFees.zero(saInReq);
|
||||||
|
|
||||||
|
int loopCount = 0;
|
||||||
while (tesSUCCESS == terResult
|
while (tesSUCCESS == terResult
|
||||||
&& saInAct + saInFees != saInReq) // Did not deliver all funds.
|
&& saInAct + saInFees != saInReq) // Did not deliver all funds.
|
||||||
{
|
{
|
||||||
|
if (++loopCount > 40)
|
||||||
|
{
|
||||||
|
cLog(lsWARNING) << "max loops cndf";
|
||||||
|
return mOpenLedger ? telFAILED_PROCESSING : tecFAILED_PROCESSING;
|
||||||
|
}
|
||||||
|
|
||||||
// Determine values for pass to adjust saInAct, saInFees, and saCurDeliverAct
|
// Determine values for pass to adjust saInAct, saInFees, and saCurDeliverAct
|
||||||
terResult = calcNodeAdvance(uNode, psCur, bMultiQuality, false); // If needed, advance to next funded offer.
|
terResult = calcNodeAdvance(uNode, psCur, bMultiQuality, false); // If needed, advance to next funded offer.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user