paymentsdb: add query to only fetch resolution type for HTLCs

This commit is contained in:
ziggie committed 2026-02-25 08:02:08 +01:00
1 parent bdea68bebf
commit 6faf68c5fa
4 files changed
+45

No files matched your search

+1
View File
@@ -49,6 +49,7 @@ type SQLQueries interface {
CountPayments(ctx context.Context) (int64, error)
FetchHtlcAttemptsForPayments(ctx context.Context, paymentIDs []int64) ([]sqlc.FetchHtlcAttemptsForPaymentsRow, error)
FetchHtlcAttemptResolutionsForPayment(ctx context.Context, paymentID int64) ([]sql.NullInt32, error)
FetchAllInflightAttempts(ctx context.Context) ([]sqlc.PaymentHtlcAttempt, error)
FetchHopsForAttempts(ctx context.Context, htlcAttemptIndices []int64) ([]sqlc.FetchHopsForAttemptsRow, error)