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

createNode

fun createNode(parameters: MockNodeParameters = 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: (NodeConfiguration) -> Any? = {}, extraCordappPackages: List<String> = emptyList()): 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 behaviour of the NodeConfiguration mock object.

extraCordappPackages - Extra CorDapp packages to add for this node.