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:
Johan T. Halseth committed 2018-08-17 23:24:13 +02:00
1 parent e9cc7492a9
commit 5deffd228c
2 files changed
+22

No files matched your search

+3
View File
@@ -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