import std/sequtils import pkg/chronos import pkg/libp2p import pkg/dagger/discovery import pkg/dagger/stores import pkg/dagger/blocktype as bt import ../examples proc generateNodes*( num: Natural, blocks: openArray[bt.Block] = [], secureManagers: openarray[SecureProtocol] = [ SecureProtocol.Noise, ]): seq[tuple[switch: Switch, blockexc: NetworkStore]] = for i in 0..