lnwallet/wallet: add missing error handling

This commit is contained in:
Johan T. Halseth 2019-03-22 08:41:46 +01:00
parent 183adf6e61
commit f589c86963
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -971,7 +971,12 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs
txin.Witness[len(txin.Witness)-1],
)
if err != nil {
msg.err <- fmt.Errorf("cannot create script: "+
"%v", err)
msg.completeChan <- nil
return
}
output, err := l.Cfg.ChainIO.GetUtxo(
&txin.PreviousOutPoint,
pkScript, 0, l.quit,