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:
2 files changed
+22
No files matched your search
@@ -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