mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
lnd: remove dead code from fundingmanager
This commit is contained in:
parent
2d6c73f0fd
commit
62e6c392a5
1 changed files with 0 additions and 28 deletions
|
@ -3233,34 +3233,6 @@ func (f *fundingManager) handleInitFundingMsg(msg *initFundingMsg) {
|
|||
}
|
||||
}
|
||||
|
||||
// waitUntilChannelOpen is designed to prevent other lnd subsystems from
|
||||
// sending new update messages to a channel before the channel is fully
|
||||
// opened.
|
||||
func (f *fundingManager) waitUntilChannelOpen(targetChan lnwire.ChannelID,
|
||||
quit <-chan struct{}) error {
|
||||
|
||||
f.barrierMtx.RLock()
|
||||
barrier, ok := f.newChanBarriers[targetChan]
|
||||
f.barrierMtx.RUnlock()
|
||||
if ok {
|
||||
fndgLog.Tracef("waiting for chan barrier signal for ChanID(%v)",
|
||||
targetChan)
|
||||
|
||||
select {
|
||||
case <-barrier:
|
||||
case <-quit:
|
||||
return ErrFundingManagerShuttingDown
|
||||
case <-f.quit:
|
||||
return ErrFundingManagerShuttingDown
|
||||
}
|
||||
|
||||
fndgLog.Tracef("barrier for ChanID(%v) closed", targetChan)
|
||||
return nil
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// processFundingError sends a message to the fundingManager allowing it to
|
||||
// process the occurred generic error.
|
||||
func (f *fundingManager) processFundingError(err *lnwire.Error,
|
||||
|
|
Loading…
Add table
Reference in a new issue