import std/[os, strutils, times, options], #options as what # TODO: Huh? Redefinition? chronicles, eth/common as eth_common, eth/keys, json_rpc/[rpcclient, rpcserver], libp2p/protobuf/minprotobuf import ../../waku/v2/waku_filter/rpc, ../../waku/v2/waku_store/rpc, ../../waku/v2/waku_message, ../../waku/v2/utils/time, ../../waku/v2/waku_node, ../../waku/v2/node/waku_payload, ../../waku/v2/node/jsonrpc/[jsonrpc_types,jsonrpc_utils] from strutils import rsplit template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = sourceDir / ".." / ".." / "waku" / "v2" / "node" / "jsonrpc" / "jsonrpc_callsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) const topicAmount = 10 #100 proc message(i: int): ProtoBuffer = let value = "hello " & $(i) var result = initProtoBuffer() result.write(1, value) result.finish() 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..