fundingmanager: fail funding flow on confirmation timeout

This commit is contained in:
Johan T. Halseth committed 2018-06-01 08:55:07 +02:00
1 parent ccf9cd47ef
commit b63ee1a410
1 file changed
+5
+5
View File
@@ -1441,6 +1441,11 @@ func (f *fundingManager) handleFundingCreated(fmsg *fundingCreatedMsg) {
case <-timeoutChan:
// We did not see the funding confirmation before
// timeout, so we forget the channel.
err := fmt.Errorf("timeout waiting for funding tx "+
"(%v) to confirm", completeChan.FundingOutpoint)
fndgLog.Warnf(err.Error())
f.failFundingFlow(fmsg.peerAddress.IdentityKey,
pendingChanID, err)
deleteFromDatabase()
return
case <-f.quit: