funding: don't send a funding error in the case of a funding timeout

This commit is contained in:
Olaoluwa Osuntokun
2017-09-13 01:04:02 +02:00
parent 3b2ed69638
commit 737eeedd49

View File

@@ -1097,8 +1097,6 @@ func (f *fundingManager) handleFundingCreated(fmsg *fundingCreatedMsg) {
case <-timeoutChan:
// We did not see the funding confirmation before
// timeout, so we forget the channel.
f.failFundingFlow(fmsg.peerAddress.IdentityKey,
pendingChanID, []byte(err.Error()))
deleteFromDatabase()
case <-f.quit:
// The fundingManager is shutting down, will resume