Merge pull request #469 from guggero/sweeper-pk-script

sweep: always send signed output's pk script
This commit is contained in:
Oliver Gugger 2022-03-21 17:52:57 +01:00 committed by GitHub
commit d1ba70e3fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -25,4 +25,7 @@ This file tracks release notes for the loop client.
#### Bug Fixes
* Loop now supports being hooked up to a remote signing pair of `lnd` nodes,
as long as `lnd` is `v0.14.3-beta` or later.
#### Maintenance

View file

@ -61,7 +61,8 @@ func (s *Sweeper) CreateSweepTx(
signDesc := lndclient.SignDescriptor{
WitnessScript: htlc.Script(),
Output: &wire.TxOut{
Value: int64(amount),
Value: int64(amount),
PkScript: htlc.PkScript,
},
HashType: txscript.SigHashAll,
InputIndex: 0,