chanrestore: define ZeroHtlcTxFeeCommitVersion

This commit is contained in:
Johan T. Halseth
2020-12-07 14:21:29 +01:00
parent d5cd9861d2
commit 0b9bec7804
2 changed files with 14 additions and 0 deletions

View File

@@ -110,6 +110,11 @@ func (c *chanDBRestorer) openChannelShell(backup chanbackup.Single) (
chanType = channeldb.AnchorOutputsBit
chanType |= channeldb.SingleFunderTweaklessBit
case chanbackup.AnchorsZeroFeeHtlcTxCommitVersion:
chanType = channeldb.ZeroHtlcTxFeeBit
chanType |= channeldb.AnchorOutputsBit
chanType |= channeldb.SingleFunderTweaklessBit
default:
return nil, fmt.Errorf("unknown Single version: %v", err)
}