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
2018-08-09 10:03:14 +02:00
parent e9cc7492a9
commit 5deffd228c
2 changed files with 22 additions and 0 deletions

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