refactor: use PaymentHash instead of Id when checking pending ln payout (#6360)

Does the same, but the `GetPayment` call explicitly wants a payment
hash, which is clearer this way (thought there might be a bug here when
I first read the code)
This commit is contained in:
jackstar12 2024-11-05 11:00:15 +01:00 committed by GitHub
parent 5e438b84e1
commit 4272ea97db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,7 @@ public class LightningPendingPayoutListener : BaseAsyncService
try
{
if (proof is not null)
payment = await client.GetPayment(proof.Id, CancellationToken);
payment = await client.GetPayment(proof.PaymentHash, CancellationToken);
}
catch
{