mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Merge pull request #506 from bhandras/sweeper-htlcv3
sweep: fill sign method when script spending a taproot htlc
This commit is contained in:
commit
5b5dfc0f5e
1 changed files with 7 additions and 0 deletions
|
|
@ -71,6 +71,13 @@ func (s *Sweeper) CreateSweepTx(
|
|||
},
|
||||
}
|
||||
|
||||
// Update the sign method from the default witness_v0 if this is a
|
||||
// taproot htlc. Note that we'll always be doing script spend when
|
||||
// sweeping a taproot htlc using the CreateSweepTx function.
|
||||
if htlc.Version == swap.HtlcV3 {
|
||||
signDesc.SignMethod = input.TaprootScriptSpendSignMethod
|
||||
}
|
||||
|
||||
// We need our previous outputs for taproot spends, and there's no
|
||||
// harm including them for segwit v0, so we always include our prevOut.
|
||||
prevOut := []*wire.TxOut{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue