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

+14
View File
@@ -0,0 +1,14 @@
package migration7
import (
"github.com/btcsuite/btclog"
)
// log is a logger that is initialized as disabled. This means the package will
// not perform any logging by default until a logger is set.
var log = btclog.Disabled
// UseLogger uses a specified Logger to output package logging info.
func UseLogger(logger btclog.Logger) {
log = logger
}