diff --git a/src/ripple/app/paths/RippleCalc.cpp b/src/ripple/app/paths/RippleCalc.cpp index a6dc2ce89e..a74527891d 100644 --- a/src/ripple/app/paths/RippleCalc.cpp +++ b/src/ripple/app/paths/RippleCalc.cpp @@ -32,7 +32,7 @@ namespace { static TER deleteOffers (ApplyView& view, - OfferSet const& offers, beast::Journal j) + std::set const& offers, beast::Journal j) { for (auto& e: offers) if (TER r = offerDelete (view, @@ -201,7 +201,7 @@ TER RippleCalc::rippleCalculate () getRate (saDstAmountReq_, saMaxAmountReq_) : 0; // Offers that became unfunded. - OfferSet unfundedOffersFromBestPaths; + std::set unfundedOffersFromBestPaths; int iPass = 0; diff --git a/src/ripple/app/paths/RippleCalc.h b/src/ripple/app/paths/RippleCalc.h index b1fc42211c..1fba4525c9 100644 --- a/src/ripple/app/paths/RippleCalc.h +++ b/src/ripple/app/paths/RippleCalc.h @@ -106,10 +106,10 @@ public: PaymentSandbox& view; // If the transaction fails to meet some constraint, still need to delete - // unfunded offers. + // unfunded offers in a deterministic order (hence the ordered container). // // Offers that were found unfunded. - path::OfferSet permanentlyUnfundedOffers_; + std::set permanentlyUnfundedOffers_; // First time working in reverse a funding source was mentioned. Source may // only be used there. diff --git a/src/ripple/app/paths/Types.h b/src/ripple/app/paths/Types.h index f03aa8c9d4..f0ad869d86 100644 --- a/src/ripple/app/paths/Types.h +++ b/src/ripple/app/paths/Types.h @@ -30,8 +30,6 @@ namespace path { using NodeIndex = unsigned int; -using OfferSet = hash_set ; - } using AccountIssueToNodeIndex = hash_map ;