channeldb+migration: add migration to save the initial balances

This commit adds a migration to patch the newly added fields,
`InitialLocalBalance` and `InitialRemoteBalance` to channel info.
This commit is contained in:
yyforyongyu
2022-04-16 11:50:05 +08:00
parent 8b289e79f5
commit c9843fd206
4 changed files with 954 additions and 0 deletions

View File

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