multi: add new SCB version for the taproot chan type

This commit is contained in:
Olaoluwa Osuntokun
2023-08-18 17:43:47 -07:00
parent 94f45b2b82
commit 5f1e0bf772
3 changed files with 45 additions and 0 deletions

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)
}