mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 17:51:33 +02:00
multi: migrate towers to use RangeIndex for AckedUpdates
In this commit, a migration is done that takes all the AckedUpdates of all sessions and stores them in the RangeIndex pattern instead and deletes the session's old AckedUpdates bucket. All the logic in the code is also updates in order to write and read from this new structure.
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"github.com/btcsuite/btclog"
|
||||
"github.com/lightningnetwork/lnd/build"
|
||||
"github.com/lightningnetwork/lnd/watchtower/lookout"
|
||||
"github.com/lightningnetwork/lnd/watchtower/wtclient"
|
||||
"github.com/lightningnetwork/lnd/watchtower/wtdb"
|
||||
"github.com/lightningnetwork/lnd/watchtower/wtserver"
|
||||
)
|
||||
|
||||
@@ -30,4 +32,6 @@ func UseLogger(logger btclog.Logger) {
|
||||
log = logger
|
||||
lookout.UseLogger(logger)
|
||||
wtserver.UseLogger(logger)
|
||||
wtclient.UseLogger(logger)
|
||||
wtdb.UseLogger(logger)
|
||||
}
|
||||
|
Reference in New Issue
Block a user