More messages for FloodSub vs GossipSub scenario

This commit is contained in:
Oskar Thoren 2020-06-15 11:34:10 +08:00
parent 181889dcd8
commit e8c8221862
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 14 additions and 2 deletions

View File

@ -28,12 +28,24 @@ for i in 0..<amount:
os.sleep(2000)
# TODO: Show plaintext message in log
# # TODO: Show plaintext message in log
# for i in 0..<topicAmount:
# os.sleep(50)
# # TODO: This would then publish on a subtopic here
# var s = "hello " & $2
# var res3 = waitFor nodes[0].wakuPublish("waku", s)
# Scenario xx3 - same as xx1 but publish from multiple nodes
# To compare FloodSub and GossipSub factor
for i in 0..<topicAmount:
os.sleep(50)
# TODO: This would then publish on a subtopic here
var s = "hello " & $2
var res3 = waitFor nodes[0].wakuPublish("waku", s)
var res3 = waitFor nodes[0].wakuPublish("waku", s & "0")
res3 = waitFor nodes[1].wakuPublish("waku", s & "1")
res3 = waitFor nodes[2].wakuPublish("waku", s & "2")
res3 = waitFor nodes[3].wakuPublish("waku", s & "3")
res3 = waitFor nodes[4].wakuPublish("waku", s & "4")
# Scenario xx2 - 14 full nodes, two edge nodes
# Assume one full topic