sweep: always send signed output's pk script

Fixes #457.
The SignOutputRaw RPC is normally too lenient when it comes to fields
not being set, which is why this used to work previously. But with lnd
in remote signing mode, we need all the extra meta information available
on an input being signed for, so we actually need the pk script being
set.
Loop fully works with a remote signing lnd backend pair after applying
this fix.
pull/469/head
Oliver Gugger 2 years ago
parent a6350905d7
commit b7e5c0b449
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -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,

Loading…
Cancel
Save