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

This commit is contained in:
Olaoluwa Osuntokun committed 2017-12-14 14:55:03 -08:00
1 parent bdfbda63bd
commit bead1ba31d
1 file changed
+5
+5
View File
@@ -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