Skip to content

Commit b7e5c0b

Browse files
committed
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.
1 parent a635090 commit b7e5c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sweep/sweeper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func (s *Sweeper) CreateSweepTx(
6161
signDesc := lndclient.SignDescriptor{
6262
WitnessScript: htlc.Script(),
6363
Output: &wire.TxOut{
64-
Value: int64(amount),
64+
Value: int64(amount),
65+
PkScript: htlc.PkScript,
6566
},
6667
HashType: txscript.SigHashAll,
6768
InputIndex: 0,

0 commit comments

Comments
 (0)