mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 22:32:42 +02:00
multi: move payment related code into own package
This commit moves most of the code into its own package. It is the smallest code move possible without moving import cycles and keeping the changes to the code base as small as possible during refactor.
This commit is contained in:
@@ -927,7 +927,7 @@ type DatabaseInstances struct {
|
||||
|
||||
// KVPaymentsDB is the database that stores all payment related
|
||||
// information.
|
||||
KVPaymentsDB *channeldb.KVPaymentsDB
|
||||
KVPaymentsDB *paymentsdb.KVPaymentsDB
|
||||
|
||||
// MacaroonDB is the database that stores macaroon root keys.
|
||||
MacaroonDB kvdb.Backend
|
||||
@@ -1225,7 +1225,7 @@ func (d *DefaultDatabaseBuilder) BuildDatabase(
|
||||
cfg.KeepFailedPaymentAttempts,
|
||||
),
|
||||
}
|
||||
kvPaymentsDB, err := channeldb.NewKVPaymentsDB(
|
||||
kvPaymentsDB, err := paymentsdb.NewKVPaymentsDB(
|
||||
dbs.ChanStateDB,
|
||||
paymentsDBOptions...,
|
||||
)
|
||||
|
Reference in New Issue
Block a user