mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-10 15:10:48 +02:00
peer: call disableChannel with disabled=false after loading channels
This to ensure now active channel is available in the router, for path finding, as it might have been disabled if the peer has been offline a while.
This commit is contained in:
@@ -3112,6 +3112,9 @@ func (s *server) watchChannelStatus() {
|
||||
|
||||
// We'll send out an update for all channels that have
|
||||
// had their status unchanged for longer than the limit.
|
||||
// NOTE: We also make sure to activate any channel when
|
||||
// we connect to a peer, to make them available for
|
||||
// path finding immediately.
|
||||
for op, st := range status {
|
||||
disable := !st.active
|
||||
|
||||
|
Reference in New Issue
Block a user