mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Return unfunded and expired offers when flow fails:
Payments do not remove unfunded and expired offers when a payment fails. However, offer crossing is now using the payment engine and needs to know what offers were found in a removable state, even on failure.
This commit is contained in:
@@ -216,7 +216,7 @@ OfferStream::permRmOffer (std::shared_ptr<SLE> const& sle)
|
||||
template<class TIn, class TOut>
|
||||
void FlowOfferStream<TIn, TOut>::permRmOffer (std::shared_ptr<SLE> const& sle)
|
||||
{
|
||||
toRemove_.push_back (sle->key());
|
||||
toRemove_.insert (sle->key());
|
||||
}
|
||||
|
||||
template class FlowOfferStream<STAmount, STAmount>;
|
||||
|
||||
Reference in New Issue
Block a user