mirror of
https://github.com/Xahau/xahaud.git
synced 2026-06-09 11:46:37 +00:00
Allow more deliver loops when multiquality
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
|
||||
namespace ripple {
|
||||
|
||||
int const CALC_NODE_DELIVER_MAX_LOOPS = 40;
|
||||
int const CALC_NODE_DELIVER_MAX_LOOPS = 100;
|
||||
int const CALC_NODE_DELIVER_MAX_LOOPS_MQ = 2000;
|
||||
int const NODE_ADVANCE_MAX_LOOPS = 100;
|
||||
int const PAYMENT_MAX_LOOPS = 1000;
|
||||
int const PATHFINDER_HIGH_PRIORITY = 100000;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -77,7 +77,10 @@ TER PathCursor::deliverNodeReverseImpl (
|
||||
// While we did not deliver as much as requested:
|
||||
while (saOutAct < saOutReq)
|
||||
{
|
||||
if (++loopCount > CALC_NODE_DELIVER_MAX_LOOPS)
|
||||
if (++loopCount >
|
||||
(multiQuality_ ?
|
||||
CALC_NODE_DELIVER_MAX_LOOPS_MQ :
|
||||
CALC_NODE_DELIVER_MAX_LOOPS))
|
||||
{
|
||||
WriteLog (lsFATAL, RippleCalc) << "loop count exceeded";
|
||||
return telFAILED_PROCESSING;
|
||||
|
||||
Reference in New Issue
Block a user