corda / net.corda.testing.node / MockNetworkNotarySpec

MockNetworkNotarySpec

data class MockNetworkNotarySpec

The spec for a notary which will used by the MockNetwork to automatically start a notary node. This notary will become part of the network parameters used by all the nodes.

Constructors

<init>

MockNetworkNotarySpec(name: CordaX500Name, validating: Boolean = true, className: String? = null)MockNetworkNotarySpec(name: CordaX500Name, validating: Boolean = true)

The spec for a notary which will used by the MockNetwork to automatically start a notary node. This notary will become part of the network parameters used by all the nodes.

Properties

className

var className: String?

String the optional name of a notary service class to load. If null, a builtin notary is loaded.

name

val name: CordaX500Name

The name of the notary node.

validating

val validating: Boolean

Boolean for whether the notary is validating or non-validating.

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.