watchtower: build channel to sessionIDs index

In this commit, a migration is added that adds an index from channel to
sessionIDs (using the DB-assigned session IDs). This will make it easier
in future to know which sessions have updates for which channels.
This commit is contained in:
Elle Mouton committed 2023-03-20 10:46:52 +02:00
1 parent b16df45076
commit ee0353dd24
7 files changed
+485 -1

No files matched your search

+2
View File
@@ -9,6 +9,7 @@ import (
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration4"
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration5"
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration6"
"github.com/lightningnetwork/lnd/watchtower/wtdb/migration7"
)
// log is a logger that is initialized with no output filters. This
@@ -38,6 +39,7 @@ func UseLogger(logger btclog.Logger) {
migration4.UseLogger(logger)
migration5.UseLogger(logger)
migration6.UseLogger(logger)
migration7.UseLogger(logger)
}
// logClosure is used to provide a closure over expensive logging operations so