channeldb: rename PaymentControl struct

In the following commits we will gradually unify the current
payment db operations into an interface to later down the road
support both backends (sql+kv).
This commit is contained in:
ziggie committed 2025-08-02 11:24:59 +02:00
1 parent 252ebdea5b
commit 2d07d44d1a
6 files changed
+74 -74

No files matched your search

+2 -2
View File
@@ -151,7 +151,7 @@ func (s *controlTowerSubscriberImpl) Updates() <-chan interface{} {
// controlTower is persistent implementation of ControlTower to restrict
// double payment sending.
type controlTower struct {
db *channeldb.PaymentControl
db *channeldb.KVPaymentsDB
// subscriberIndex is used to provide a unique id for each subscriber
// to all payments. This is used to easily remove the subscriber when
@@ -168,7 +168,7 @@ type controlTower struct {
}
// NewControlTower creates a new instance of the controlTower.
func NewControlTower(db *channeldb.PaymentControl) ControlTower {
func NewControlTower(db *channeldb.KVPaymentsDB) ControlTower {
return &controlTower{
db: db,
subscribersAllPayments: make(