# compile time options here const libp2p_pubsub_sign {.booldefine.} = true libp2p_pubsub_verify {.booldefine.} = true import random import chronos import ../../libp2p/[standard_setup, protocols/pubsub/pubsub, protocols/pubsub/floodsub, protocols/pubsub/gossipsub, protocols/secure/secure] export standard_setup randomize() proc generateNodes*( num: Natural, secureManagers: openarray[SecureProtocol] = [ # array cos order matters SecureProtocol.Secio, SecureProtocol.Noise, ], msgIdProvider: MsgIdProvider = nil, gossip: bool = false, triggerSelf: bool = false, verifySignature: bool = libp2p_pubsub_verify, sign: bool = libp2p_pubsub_sign): seq[PubSub] = for i in 0..