multi: add new SCB version for the taproot chan type

This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:34:34 -07:00
1 parent 94f45b2b82
commit 5f1e0bf772
3 files changed
+45

No files matched your search

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