mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-23 20:23:54 +02:00
paymentsdb: add missing comments for variables
This commit is contained in:
@@ -127,6 +127,8 @@ type KVPaymentsDB struct {
|
|||||||
// db is the underlying database implementation.
|
// db is the underlying database implementation.
|
||||||
db kvdb.Backend
|
db kvdb.Backend
|
||||||
|
|
||||||
|
// keepFailedPaymentAttempts is a flag that indicates whether we should
|
||||||
|
// keep failed payment attempts in the database.
|
||||||
keepFailedPaymentAttempts bool
|
keepFailedPaymentAttempts bool
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,6 +160,8 @@ func NewKVPaymentsDB(db kvdb.Backend,
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// paymentsTopLevelBuckets is a list of top-level buckets that are used for
|
||||||
|
// the payments database when using the kv store.
|
||||||
var paymentsTopLevelBuckets = [][]byte{
|
var paymentsTopLevelBuckets = [][]byte{
|
||||||
paymentsRootBucket,
|
paymentsRootBucket,
|
||||||
paymentsIndexBucket,
|
paymentsIndexBucket,
|
||||||
|
Reference in New Issue
Block a user