Merge pull request #4092 from Crypt-iQ/peer_ll_0210

link+peer: buffer messages until link active
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2020-03-27 13:20:25 -07:00
commit eb10594381
6 files changed
+179 -53

No files matched your search

+7
View File
@@ -3527,6 +3527,11 @@ func (r *rpcServer) SubscribeChannelEvents(req *lnrpc.ChannelEventSubscription,
},
}
// Completely ignore ActiveLinkEvent as this is explicitly not
// exposed to the RPC.
case channelnotifier.ActiveLinkEvent:
continue
default:
return fmt.Errorf("unexpected channel event update: %v", event)
}
@@ -5959,6 +5964,8 @@ func (r *rpcServer) SubscribeChannelBackups(req *lnrpc.ChannelBackupSubscription
continue
case channelnotifier.InactiveChannelEvent:
continue
case channelnotifier.ActiveLinkEvent:
continue
}
// Now that we know the channel state has changed,