mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix local variable unfundedOffers that was shadowing a class variable.
This commit is contained in:
committed by
Vinnie Falco
parent
54f3a83e25
commit
88a6f2931e
@@ -360,7 +360,7 @@ TER RippleCalc::rippleCalculate ()
|
||||
}
|
||||
|
||||
// Delete found unfunded offers.
|
||||
for (auto const& offerIndex: unfundedOffers)
|
||||
for (auto const& offerIndex: unfundedOffers_)
|
||||
{
|
||||
if (resultCode == tesSUCCESS)
|
||||
{
|
||||
|
||||
@@ -85,7 +85,7 @@ struct RippleCalc
|
||||
// unfunded offers.
|
||||
//
|
||||
// Offers that were found unfunded.
|
||||
hash_set<uint256> unfundedOffers;
|
||||
hash_set<uint256> unfundedOffers_;
|
||||
|
||||
// The computed input amount.
|
||||
STAmount actualAmountIn_;
|
||||
|
||||
@@ -212,7 +212,7 @@ TER PathCursor::advanceNode (bool const bReverse) const
|
||||
// Offer is expired.
|
||||
WriteLog (lsTRACE, RippleCalc)
|
||||
<< "advanceNode: expired offer";
|
||||
rippleCalc_.unfundedOffers.insert(node().offerIndex_);
|
||||
rippleCalc_.unfundedOffers_.insert(node().offerIndex_);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -232,10 +232,10 @@ TER PathCursor::advanceNode (bool const bReverse) const
|
||||
<< " node.saTakerGets=%s" << node().saTakerGets;
|
||||
|
||||
// Mark offer for always deletion.
|
||||
rippleCalc_.unfundedOffers.insert (node().offerIndex_);
|
||||
rippleCalc_.unfundedOffers_.insert (node().offerIndex_);
|
||||
}
|
||||
else if (rippleCalc_.unfundedOffers.find (node().offerIndex_)
|
||||
!= rippleCalc_.unfundedOffers.end ())
|
||||
else if (rippleCalc_.unfundedOffers_.find (node().offerIndex_)
|
||||
!= rippleCalc_.unfundedOffers_.end ())
|
||||
{
|
||||
// Past internal error, offer was found failed to place
|
||||
// this in unfundedOffers.
|
||||
@@ -339,7 +339,7 @@ TER PathCursor::advanceNode (bool const bReverse) const
|
||||
// That is, even if this offer fails due to fill or kill
|
||||
// still do deletions.
|
||||
// Mark offer for always deletion.
|
||||
rippleCalc_.unfundedOffers.insert (node().offerIndex_);
|
||||
rippleCalc_.unfundedOffers_.insert (node().offerIndex_);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user