Allow more deliver loops when multiquality

This commit is contained in:
JoelKatz
2015-09-09 09:50:57 -07:00
committed by Nik Bougalis
parent 020a112e77
commit 332114c02a
3 changed files with 10 additions and 3 deletions

View File

@@ -53,7 +53,10 @@ TER PathCursor::deliverNodeForward (
while (resultCode == tesSUCCESS && saInAct + saInFees < saInReq)
{
// Did not spend all inbound deliver funds.
if (++loopCount > CALC_NODE_DELIVER_MAX_LOOPS)
if (++loopCount >
(multiQuality_ ?
CALC_NODE_DELIVER_MAX_LOOPS_MQ :
CALC_NODE_DELIVER_MAX_LOOPS))
{
WriteLog (lsWARNING, RippleCalc)
<< "deliverNodeForward: max loops cndf";