Skip to content

Commit 7f886ab

Browse files
Roasbeefguggero
authored andcommitted
contractcourt: fix witness type bug for taproot chans
We checked for OP_DROP, but both of the local+remote scripts end in `N OP_CSV OP_DROP`. So for now, we'll check for the maturity delay, with the assumption that this won't be 1 for regular taproot chans. Either way, everything else is correct as the witness is the same, but this may lead to display issues down the line.
1 parent 3cd9253 commit 7f886ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contractcourt/commit_sweep_resolver.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,8 @@ func (c *commitSweepResolver) Resolve(_ bool) (ContractResolver, error) {
284284
default:
285285
isLocalCommitTx = signDesc.WitnessScript[0] == txscript.OP_IF
286286
}
287-
isDelayedOutput := c.commitResolution.MaturityDelay != 0
288287

289-
c.log.Debugf("isDelayedOutput=%v, isLocalCommitTx=%v", isDelayedOutput,
290-
isLocalCommitTx)
288+
isDelayedOutput := c.commitResolution.MaturityDelay != 0
291289

292290
// There're three types of commitments, those that have tweaks for the
293291
// remote key (us in this case), those that don't, and a third where

0 commit comments

Comments
 (0)