diff --git a/funding/manager.go b/funding/manager.go index 2bb3a07f5..74fcdfec8 100644 --- a/funding/manager.go +++ b/funding/manager.go @@ -2499,7 +2499,7 @@ func (f *Manager) waitForFundingWithTimeout( // If we are not the initiator, we have no money at stake and will // timeout waiting for the funding transaction to confirm after a // while. - if !ch.IsInitiator { + if !ch.IsInitiator && !ch.IsZeroConf() { f.wg.Add(1) go f.waitForTimeout(ch, cancelChan, timeoutChan) } @@ -3251,9 +3251,7 @@ func (f *Manager) waitForZeroConfChannel(c *channeldb.OpenChannel, // is already confirmed, the chainntnfs subsystem will return with the // confirmed tx. Otherwise, we'll wait here until confirmation occurs. confChan, err := f.waitForFundingWithTimeout(c) - if err == ErrConfirmationTimeout { - return f.fundingTimeout(c, pendingID) - } else if err != nil { + if err != nil { return fmt.Errorf("error waiting for zero-conf funding "+ "confirmation for ChannelPoint(%v): %v", c.FundingOutpoint, err)