Fix for auth required blocking payments.

This commit is contained in:
JoelKatz
2013-07-16 16:02:43 -07:00
parent a8794de987
commit af1fb12962

View File

@@ -295,8 +295,9 @@ TER PathState::pushNode (
terResult = terNO_ACCOUNT;
}
else if (isSetBit (sleBck->getFieldU32 (sfFlags), lsfRequireAuth)
else if ((isSetBit (sleBck->getFieldU32 (sfFlags), lsfRequireAuth)
&& !isSetBit (sleRippleState->getFieldU32 (sfFlags), (bHigh ? lsfHighAuth : lsfLowAuth)))
&& sleRippleState->getFieldAmount(sfBalance).isZero()) // CHECKME
{
WriteLog (lsWARNING, RippleCalc) << "pushNode: delay: can't receive IOUs from issuer without auth.";