lnwallet: properly check error when creating commit tx in funding flow

This commit is contained in:
Olaoluwa Osuntokun 2017-12-14 14:04:30 -08:00
parent bdfbda63bd
commit bead1ba31d
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1146,6 +1146,11 @@ func (l *LightningWallet) handleSingleFunderSigs(req *addSingleFunderSigsMsg) {
pendingReservation.theirContribution.FirstCommitmentPoint,
fundingTxIn,
)
if err != nil {
req.err <- err
req.completeChan <- nil
return
}
// With both commitment transactions constructed, we can now use the
// generator state obfuscator to encode the current state number within