make gossip broadcast operate on GossipData

This commit is contained in:
Matthias Radestock committed 2015-04-06 14:00:51 +01:00
1 parent 9b9d8a03aa
commit a58eb6ba7d
2 files changed
+15 -12

No files matched your search

+2 -2
View File
@@ -377,8 +377,8 @@ func (router *Router) OnGossipUnicast(sender PeerName, msg []byte) error {
return fmt.Errorf("unexpected topology gossip unicast: %v", msg)
}
func (router *Router) OnGossipBroadcast(msg []byte) error {
return fmt.Errorf("unexpected topology gossip broadcast: %v", msg)
func (router *Router) OnGossipBroadcast(update []byte) (GossipData, error) {
return nil, fmt.Errorf("unexpected topology gossip broadcast: %v", update)
}
func (router *Router) Gossip() GossipData {