Skip to content

Commit 49632cc

Browse files
committed
lnd: add PrevoutInput Fetcher for SignDesc
Currently chantools crashes when trying to get the force-close summary because the new btcd version needs a prevoutInput fetcher otherwise we get a nil error.
1 parent 298a278 commit 49632cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lnd/channel.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func (lc *LightningChannel) CreateSignDesc() error {
4545
},
4646
HashType: txscript.SigHashAll,
4747
InputIndex: 0,
48+
PrevOutputFetcher: txscript.NewCannedPrevOutputFetcher(
49+
fundingPkScript, int64(lc.ChannelState.Capacity),
50+
),
4851
}
4952

5053
return nil

0 commit comments

Comments
 (0)