mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-07 23:53:11 +00:00
make all nodes emit messages
This commit is contained in:
parent
f46d343ea6
commit
76b3cb0547
@ -23,8 +23,7 @@ class Node:
|
||||
"""
|
||||
Creates/encapsulate a message and send it to the network through the mixnet
|
||||
"""
|
||||
# while True:
|
||||
if self.id == 0:
|
||||
while True:
|
||||
msg = self.create_message()
|
||||
yield self.env.timeout(2)
|
||||
print("Sending a message at time %d" % self.env.now)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user