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: MockNodeConfigOverrides? = null): 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.