From 19e6c2a55d970a2203c1547b71edb8f4ef8a7851 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Mon, 15 Jun 2020 11:06:08 +0800 Subject: [PATCH] Break out sim into scenarios, one full node mesh vs light --- waku/node/v2/quicksim.nim | 77 ++++++++++++++++++++++++---------- waku/node/v2/start_network.nim | 22 ++++++---- 2 files changed, 68 insertions(+), 31 deletions(-) diff --git a/waku/node/v2/quicksim.nim b/waku/node/v2/quicksim.nim index ba185bb0a..4975696fd 100644 --- a/waku/node/v2/quicksim.nim +++ b/waku/node/v2/quicksim.nim @@ -11,11 +11,65 @@ template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = &"{sourceDir}{DirSep}rpc{DirSep}wakucallsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) -const topicAmount = 100 +const topicAmount = 10 #100 proc handler(topic: string, data: seq[byte]) {.async, gcsafe.} = debug "Hit handler", topic=topic, data=data +# Scenario xx1 - 16 full nodes +######################################### +let amount = 16 +var nodes: seq[RPCHttpClient] +for i in 0..