channeldb/migration13: migrate to mpp structure

This commit migrates the payments in the database to a new structure
that allows for multiple htlcs per payments. The migration introduces a
new sub-bucket that contains a list of htlcs and moves the old single
htlc into that.
This commit is contained in:
Joost Jager committed 2020-03-09 18:31:39 +01:00
1 parent 4cea2d5213
commit 866623e84b
5 files changed
+347

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package migration13
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
}