mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Ensure offer cleanup is deterministic
This commit is contained in:
@@ -360,10 +360,7 @@ TER OfferCreateTransactor::takeOffers (
|
||||
{
|
||||
WriteLog (lsDEBUG, OfferCreateTransactor) << "takeOffers: became unfunded: " << uOfferIndex.ToString ();
|
||||
|
||||
terResult = lesActive.offerDelete (uOfferIndex);
|
||||
|
||||
if (tesSUCCESS != terResult)
|
||||
break;
|
||||
lesActive.offerDelete (uOfferIndex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -709,10 +706,8 @@ TER OfferCreateTransactor::doApply ()
|
||||
|
||||
WriteLog (lsINFO, OfferCreateTransactor) << "takeOffers: found unfunded: " << uOfferIndex.ToString ();
|
||||
|
||||
terResult = lesActive.offerDelete (uOfferIndex);
|
||||
lesActive.offerDelete (uOfferIndex);
|
||||
|
||||
if (tesSUCCESS != terResult)
|
||||
break;
|
||||
}
|
||||
|
||||
// Go through the list of offers not found and remove them from the order book
|
||||
|
||||
@@ -54,7 +54,7 @@ private:
|
||||
boost::unordered_set<uint256> usOfferUnfundedFound; // Offers found unfunded.
|
||||
|
||||
typedef std::pair <uint256, uint256> missingOffer_t;
|
||||
boost::unordered_set<missingOffer_t> usMissingOffers;
|
||||
std::set<missingOffer_t> usMissingOffers;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user