From e24ae0d7f3cf5ba308e3d8fcb40b744093e81079 Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 13 Aug 2025 12:43:07 +0200 Subject: [PATCH] paymentsdb: add missing comments for variables --- payments/db/kv_store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/payments/db/kv_store.go b/payments/db/kv_store.go index 02ba64933..afc7dec0a 100644 --- a/payments/db/kv_store.go +++ b/payments/db/kv_store.go @@ -127,6 +127,8 @@ type KVPaymentsDB struct { // db is the underlying database implementation. db kvdb.Backend + // keepFailedPaymentAttempts is a flag that indicates whether we should + // keep failed payment attempts in the database. keepFailedPaymentAttempts bool } @@ -158,6 +160,8 @@ func NewKVPaymentsDB(db kvdb.Backend, }, nil } +// paymentsTopLevelBuckets is a list of top-level buckets that are used for +// the payments database when using the kv store. var paymentsTopLevelBuckets = [][]byte{ paymentsRootBucket, paymentsIndexBucket,