mirror of https://github.com/BTCPrivate/lnd.git
peer: filter borked channels when loading active chans
This commit is contained in:
parent
978c0dc512
commit
44805be8d9
6
peer.go
6
peer.go
|
@ -318,6 +318,12 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||
return fmt.Errorf("peer shutting down")
|
||||
}
|
||||
|
||||
// Skip adding any permanently irreconcilable channels to the
|
||||
// htlcswitch.
|
||||
if dbChan.IsBorked {
|
||||
continue
|
||||
}
|
||||
|
||||
blockEpoch, err := p.server.cc.chainNotifier.RegisterBlockEpochNtfn()
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue