From bead1ba31d0b48112c65c898c76a4731e3f92140 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 14 Dec 2017 14:04:30 -0800 Subject: [PATCH] lnwallet: properly check error when creating commit tx in funding flow --- lnwallet/wallet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 42411bd7..dbc851ed 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -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