Fix tests with LightningPendingPayoutListener overriding automated payouts state changes

This commit is contained in:
nicolas.dorier
2024-10-27 19:34:20 +09:00
parent c9fe68b812
commit 0e59107eee

View File

@@ -94,6 +94,9 @@ public class LightningPendingPayoutListener : BaseAsyncService
var handler = _payoutHandlers.TryGet(payoutData.GetPayoutMethodId()) as LightningLikePayoutHandler;
if (handler is null || handler.PayoutsPaymentProcessing.Contains(payoutData.Id))
continue;
using var tracking = handler.PayoutsPaymentProcessing.StartTracking();
if (!tracking.TryTrack(payoutData.Id))
continue;
var proof = handler.ParseProof(payoutData) as PayoutLightningBlob;
LightningPayment payment = null;