We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8f23c67 + c9bc10e commit 5b5dfc0Copy full SHA for 5b5dfc0
sweep/sweeper.go
@@ -71,6 +71,13 @@ func (s *Sweeper) CreateSweepTx(
71
},
72
}
73
74
+ // Update the sign method from the default witness_v0 if this is a
75
+ // taproot htlc. Note that we'll always be doing script spend when
76
+ // sweeping a taproot htlc using the CreateSweepTx function.
77
+ if htlc.Version == swap.HtlcV3 {
78
+ signDesc.SignMethod = input.TaprootScriptSpendSignMethod
79
+ }
80
+
81
// We need our previous outputs for taproot spends, and there's no
82
// harm including them for segwit v0, so we always include our prevOut.
83
prevOut := []*wire.TxOut{
0 commit comments