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.
pull/63/head
ziggie 1 year ago
parent 298a278952
commit 49632cce5a
No known key found for this signature in database
GPG Key ID: 1AFF9C4DCED6D666

@ -45,6 +45,9 @@ func (lc *LightningChannel) CreateSignDesc() error {
},
HashType: txscript.SigHashAll,
InputIndex: 0,
PrevOutputFetcher: txscript.NewCannedPrevOutputFetcher(
fundingPkScript, int64(lc.ChannelState.Capacity),
),
}
return nil

Loading…
Cancel
Save