# 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/secure/secure] when defined(fallback_gossipsub_10): import ../../libp2p/protocols/pubsub/gossipsub10 else: import ../../libp2p/protocols/pubsub/gossipsub export standard_setup randomize() proc generateNodes*( num: Natural, secureManagers: openarray[SecureProtocol] = [ 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..