com.r3corda.node.internal.testing / MockNetwork / createSomeNodes

createSomeNodes

fun createSomeNodes(numPartyNodes: Int = 2, nodeFactory: Factory = defaultFactory, notaryKeyPair: KeyPair? = DUMMY_NOTARY_KEY): BasketOfNodes

Sets up a network with the requested number of nodes (defaulting to two), with one or more service nodes that run a notary, network map, any oracles etc. Cant be combined with createTwoNodes.