# Group by std, external then internal imports import # std imports std/ [os, strutils, times, options], #options as what # TODO: Huh? Redefinition? # external imports chronicles, eth/common as eth_common, eth/keys, json_rpc/[rpcclient, rpcserver], libp2p/protobuf/minprotobuf, # internal imports ../protocol/waku_filter/waku_filter_types, ../protocol/waku_store/waku_store_types, ../protocol/waku_message, ../utils/time, ./wakunode2, ./waku_payload, ./jsonrpc/[jsonrpc_types,jsonrpc_utils] from strutils import rsplit template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = sourceDir / "jsonrpc" / "jsonrpc_callsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) const defaultTopic = "/waku/2/default-waku/proto" const defaultContentTopic = ContentTopic("waku/2/default-content/proto") 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..