corda / net.corda.testing.node / MockNetwork / createUnstartedNode

createUnstartedNode

fun createUnstartedNode(parameters: MockNodeParameters = MockNodeParameters()): UnstartedMockNode

Create an unstarted node with the given parameters.

@JvmOverloads fun createUnstartedNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: (NodeConfiguration) -> Any? = {}, extraCordappPackages: List<String> = emptyList()): UnstartedMockNode

Create an unstarted node with the given parameters.

Parameters

legalName - The node's legal name.

forcedID - A unique identifier for the node.

entropyRoot - The initial entropy value to use when generating keys. Defaults to an (insecure) random value, but can be overridden to cause nodes to have stable or colliding identity/service keys.

configOverrides - Add/override behaviour of the NodeConfiguration mock object.

extraCordappPackages - Extra CorDapp packages to add for this node.