From 49632cce5a6cc387a727661d890e0e329b212b13 Mon Sep 17 00:00:00 2001 From: ziggie Date: Thu, 20 Apr 2023 11:30:05 +0200 Subject: [PATCH] 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. --- lnd/channel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnd/channel.go b/lnd/channel.go index bd06e20..01f538a 100644 --- a/lnd/channel.go +++ b/lnd/channel.go @@ -45,6 +45,9 @@ func (lc *LightningChannel) CreateSignDesc() error { }, HashType: txscript.SigHashAll, InputIndex: 0, + PrevOutputFetcher: txscript.NewCannedPrevOutputFetcher( + fundingPkScript, int64(lc.ChannelState.Capacity), + ), } return nil