41cd6eb2b071904133dfc44f511318c3f774cbf5,grid/pubsub/workers/anchor.py,GridAnchor,__init__,#GridAnchor#,7

Before Change


		self.listen_for_openmined_nodes(min_om_nodes=int(0))

		self.listen_to_channel(channels.openmined,just_listen)
		self.listen_to_channel(channels.list_workers,self.list_workers)
		

After Change



class GridAnchor(base_worker.GridWorker):

	def __init__(self):
		super().__init__()

		self.node_type = "ANCHOR"

		// prints a picture of an anchor :)
		print(strings.anchor)

		// Blocking until this node has found at least one other OpenMined node
		// This functionality queries https://github.com/OpenMined/BootstrapNodes for Anchor nodes
		// then asks those nodes for which other OpenMined nodes they know about on the network.
		self.processes["listen_for_openmined_nodes"] = ListenForOpenMinedNodesProcess(self,min_om_nodes=0)

		// just lets the network know its a member of the openmined network
		self.processes["passively_broadcast_membership"] = PassivelyBroadcastMembershipProcess(self)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: OpenMined/Grid
Commit Name: 41cd6eb2b071904133dfc44f511318c3f774cbf5
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/anchor.py
Class Name: GridAnchor
Method Name: __init__


Project Name: OpenMined/Grid
Commit Name: 41cd6eb2b071904133dfc44f511318c3f774cbf5
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/compute.py
Class Name: GridCompute
Method Name: __init__


Project Name: OpenMined/Grid
Commit Name: 41cd6eb2b071904133dfc44f511318c3f774cbf5
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/base_worker.py
Class Name: GridWorker
Method Name: __init__


Project Name: OpenMined/Grid
Commit Name: 3ff1eb841771a36df252ae29e7700f2424cad392
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/base_worker.py
Class Name: GridWorker
Method Name: __init__


Project Name: OpenMined/Grid
Commit Name: 3ff1eb841771a36df252ae29e7700f2424cad392
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/anchor.py
Class Name: GridAnchor
Method Name: __init__


Project Name: OpenMined/Grid
Commit Name: 41cd6eb2b071904133dfc44f511318c3f774cbf5
Time: 2018-02-27
Author: liamtrask@gmail.com
File Name: grid/pubsub/workers/anchor.py
Class Name: GridAnchor
Method Name: __init__