disable multicast

pull/69/merge
Minh Doan 6 years ago
parent 9a2dc6ebd5
commit 7c6aad17fa
  1. 2
      node/node_handler.go
  2. 3
      p2p/peer.go

@ -43,7 +43,7 @@ func (node *Node) NodeHandler(conn net.Conn) {
node.log.Error("Read p2p data failed", "err", err, "node", node) node.log.Error("Read p2p data failed", "err", err, "node", node)
return return
} }
node.MaybeBroadcastAsValidator(content) // node.MaybeBroadcastAsValidator(content)
consensusObj := node.Consensus consensusObj := node.Consensus

@ -68,7 +68,8 @@ func SelectMyPeers(peers []Peer, min int, max int) []Peer {
// BroadcastMessage sends the message to a list of peers from a leader. // BroadcastMessage sends the message to a list of peers from a leader.
func BroadcastMessageFromLeader(peers []Peer, msg []byte) { func BroadcastMessageFromLeader(peers []Peer, msg []byte) {
peers = SelectMyPeers(peers, 0, MAX_BROADCAST-1) // TODO(minhdoan): Enable back for multicast.
// peers = SelectMyPeers(peers, 0, MAX_BROADCAST-1)
BroadcastMessage(peers, msg) BroadcastMessage(peers, msg)
} }

Loading…
Cancel
Save