watchtower/blob: add taproot Commitment type

This commit is contained in:
Elle Mouton
2023-05-31 08:21:56 +02:00
parent d84a98e3db
commit 5960253357
3 changed files with 263 additions and 57 deletions

View File

@ -102,6 +102,9 @@ func (t Type) CommitmentType(chanType *channeldb.ChannelType) (CommitmentType,
error) {
switch {
case t.Has(FlagTaprootChannel):
return TaprootCommitment, nil
case t.Has(FlagAnchorChannel):
return AnchorCommitment, nil