import os, strutils, strformat, chronicles, json_rpc/[rpcclient, rpcserver], nimcrypto/sysrand, libp2p/protobuf/minprotobuf, eth/common as eth_common, eth/keys, options #options as what # TODO: Huh? Redefinition? from strutils import rsplit template sourceDir: string = currentSourcePath.rsplit(DirSep, 1)[0] const sigWakuPath = sourceDir / "rpc" / "wakucallsigs.nim" createRpcSigs(RpcHttpClient, sigWakuPath) const topicAmount = 10 #100 proc message(i: int): ProtoBuffer = let value = "hello " & $(i) var result = initProtoBuffer() result.write(initProtoField(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..