switch to gossip broadcast for topology updates

This commit is contained in:
Matthias Radestock committed 2015-04-06 14:17:23 +01:00
1 parent f4416bfadc
commit f80410bf59
4 files changed
+8 -10

No files matched your search

+1
View File
@@ -269,6 +269,7 @@ func (c *GossipChannel) relayBroadcast(srcName PeerName, update GossipData) erro
}
func (c *GossipChannel) sendBroadcast(srcName PeerName, update GossipData) {
c.ourself.Router.Routes.EnsureRecalculated()
nextHops := c.ourself.Router.Routes.BroadcastAll(srcName)
if len(nextHops) == 0 {
return