chanbackup: disable channel backup for anchor types

This commit is contained in:
Johan T. Halseth committed 2020-03-09 12:59:35 +01:00
1 parent fd93c568ea
commit 7adb1bcbaa
2 files changed
+20 -3

No files matched your search

+6
View File
@@ -213,6 +213,12 @@ func (s *SubSwapper) backupUpdater() {
// For all new open channels, we'll create a new SCB
// given the required information.
for _, newChan := range chanUpdate.NewChans {
// TODO(halseth): support chan backups for
// anchor types.
if newChan.ChanType.HasAnchors() {
continue
}
log.Debugf("Adding channel %v to backup state",
newChan.FundingOutpoint)