Merge pull request #4277 from joostjager/fix-signer-err

lnwallet: return signer error
This commit is contained in:
Olaoluwa Osuntokun 2020-05-15 16:15:50 -07:00 committed by GitHub
commit 02f8a0db2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3425,7 +3425,7 @@ func (lc *LightningChannel) SignNextCommitment() (lnwire.Sig, []lnwire.Sig, []ch
// jobs.
if jobResp.Err != nil {
close(cancelChan)
return sig, htlcSigs, nil, err
return sig, htlcSigs, nil, jobResp.Err
}
htlcSigs = append(htlcSigs, jobResp.Sig)