From 9dd6b7c408e9d697c1191f547ce05fc6c04a6566 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 5 Aug 2013 00:40:28 -0700 Subject: [PATCH] Make sure we skip unfunded offers. --- src/cpp/ripple/ripple_RippleCalc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/ripple_RippleCalc.cpp b/src/cpp/ripple/ripple_RippleCalc.cpp index 4d1db38d68..6635ba05b4 100644 --- a/src/cpp/ripple/ripple_RippleCalc.cpp +++ b/src/cpp/ripple/ripple_RippleCalc.cpp @@ -717,7 +717,7 @@ TER RippleCalc::calcNodeDeliverFwd ( % saInPassAct % saOutPassMax); - if (!saInSum) // FIXME: We remove an offer if we didn't want anything out of it?! + if (!saTakerPays || !saInSum) // FIXME: We remove an offer if we didn't want anything out of it?! { WriteLog (lsINFO, RippleCalc) << "calcNodeDeliverFwd: Microscopic offer unfunded.";