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

createTwoNodes

fun createTwoNodes(nodeFactory: Factory = defaultFactory, notaryKeyPair: KeyPair? = null): <ERROR CLASS><MockNode, MockNode>

Sets up a two node network, in which the first node runs network map and notary services and the other doesnt.