make gossip broadcast operate on GossipData
This commit is contained in:
1 parent
9b9d8a03aa
commit
a58eb6ba7d
2 files changed
+15
-12
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user