mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Check for payment increments that make no progress. (RIPD-374)
This commit is contained in:
committed by
Vinnie Falco
parent
f4fcb1cc9a
commit
6914aa3e27
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user