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 committed 2022-04-20 01:18:12 +08:00
1 parent 8b289e79f5
commit c9843fd206
4 files changed
+954

No files matched your search

+14
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
}