fix: save proof blob if payout is in progress (#6343)

the payout cant be tracked later otherwise and will be marked as
cancelled
This commit is contained in:
jackstar12 2024-11-01 00:24:21 +01:00 committed by GitHub
parent 4687bb95cb
commit 7d8fc14159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,11 +311,13 @@ public class LightningAutomatedPayoutProcessor : BaseAutomatedPayoutProcessor<Li
}
else
{
// Payment will be saved as pending, the LightningPendingPayoutListener will handle settling/cancelling
payoutData.State = PayoutState.InProgress;
payoutData.SetProofBlob(proofBlob, null);
return new ResultVM
{
PayoutId = payoutData.Id,
Result = PayResult.Unknown,
Result = PayResult.Ok,
Destination = payoutBlob.Destination,
Message = "The payment has been initiated but is still in-flight."
};