fundingmanager: fail funding flow on confirmation timeout

This commit is contained in:
Johan T. Halseth 2018-05-30 12:09:07 +02:00
parent ccf9cd47ef
commit b63ee1a410
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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: