Check for payment increments that make no progress. (RIPD-374)

This commit is contained in:
David Schwartz
2014-07-21 13:40:16 -07:00
committed by Vinnie Falco
parent f4fcb1cc9a
commit 6914aa3e27

View File

@@ -268,6 +268,19 @@ TER rippleCalculate (
++iDry;
}
else if (pspCur->outPass() == zero)
{
// Path is not dry, but moved no funds
// This should never happen. Consider the path dry
WriteLog (lsWARNING, RippleCalc)
<< "rippelCalc: Non-dry path moves no funds";
assert (false);
pspCur->setQuality (0);
++iDry;
}
else
{
CondLog (!pspCur->inPass() || !pspCur->outPass(),