예제 #1
0
 def stop(self):
     for peer in self._peers:
         request = PeerUnregisterRequest()
         self._network.send(validator_pb2.Message.GOSSIP_UNREGISTER,
                            request.SerializeToString(), peer)
     if self._topology:
         self._topology.stop()
예제 #2
0
 def stop(self):
     for peer in self.get_peers():
         request = PeerUnregisterRequest()
         try:
             self._network.send(validator_pb2.Message.GOSSIP_UNREGISTER,
                                request.SerializeToString(), peer)
         except ValueError:
             pass
     if self._topology:
         self._topology.stop()