diff --git a/src/ripple_app/paths/PathNext.cpp b/src/ripple_app/paths/PathNext.cpp index 1f126d65e..e9fcd57ff 100644 --- a/src/ripple_app/paths/PathNext.cpp +++ b/src/ripple_app/paths/PathNext.cpp @@ -39,7 +39,6 @@ void pathNext ( // The next state is what is available in preference order. // This is calculated when referenced accounts changed. const unsigned int lastNodeIndex = pathState.vpnNodes.size () - 1; - pathState.bConsumed = false; // YYY This clearing should only be needed for nice logging. diff --git a/src/ripple_app/paths/PathState.h b/src/ripple_app/paths/PathState.h index 9a6fafa37..ab9f76429 100644 --- a/src/ripple_app/paths/PathState.h +++ b/src/ripple_app/paths/PathState.h @@ -112,6 +112,7 @@ public: const STAmount& saSendMax) : saInReq (saSendMax) , saOutReq (saSend) + , bConsumed (false) { } @@ -119,6 +120,7 @@ public: bool bUnused) : saInReq (psSrc.saInReq) , saOutReq (psSrc.saOutReq) + , bConsumed (false) { } diff --git a/src/ripple_app/paths/RippleCalc.cpp b/src/ripple_app/paths/RippleCalc.cpp index b390fcb1d..381595988 100644 --- a/src/ripple_app/paths/RippleCalc.cpp +++ b/src/ripple_app/paths/RippleCalc.cpp @@ -315,8 +315,7 @@ TER rippleCalculate ( << " rate: " << STAmount::saFromRate (pspCur->uQuality) << " quality:" << pspCur->uQuality - << " best: " << (iBest == pspCur->getIndex ()) - << " consumed: " << pspCur->bConsumed; + << " best: " << (iBest == pspCur->getIndex ()); } }