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