fundingmanager: remove dead code
Pending channels will never have a channel opening state, and hence will never be pending.
This commit is contained in:
parent
5d1a7b0e7d
commit
e189f78567
@ -613,17 +613,6 @@ func (f *fundingManager) start() error {
|
|||||||
fndgLog.Debugf("channel (%v) with opening state %v found",
|
fndgLog.Debugf("channel (%v) with opening state %v found",
|
||||||
chanID, channelState)
|
chanID, channelState)
|
||||||
|
|
||||||
if channel.IsPending {
|
|
||||||
// Set up the channel barriers again, to make sure
|
|
||||||
// waitUntilChannelOpen correctly waits until the
|
|
||||||
// opening process is completely over.
|
|
||||||
f.barrierMtx.Lock()
|
|
||||||
fndgLog.Tracef("Loading pending ChannelPoint(%v), "+
|
|
||||||
"creating chan barrier", channel.FundingOutpoint)
|
|
||||||
f.newChanBarriers[chanID] = make(chan struct{})
|
|
||||||
f.barrierMtx.Unlock()
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we did find the channel in the opening state database, we
|
// If we did find the channel in the opening state database, we
|
||||||
// have seen the funding transaction being confirmed, but we
|
// have seen the funding transaction being confirmed, but we
|
||||||
// did not finish the rest of the setup procedure before we shut
|
// did not finish the rest of the setup procedure before we shut
|
||||||
|
Loading…
Reference in New Issue
Block a user