MockNetwork.createNode - corda

corda / net.corda.testing.node / MockNetwork / createNode

# createNode

`fun createNode(parameters: MockNodeParameters): StartedMockNode`

Create a started node with the given parameters.

`@JvmOverloads fun createNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null): StartedMockNode`

Create a started 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 the default configuration/behaviour of the node