corda / net.corda.core.node / NetworkParameters

NetworkParameters

data class NetworkParameters

Network parameters are a set of values that every node participating in the zone needs to agree on and use to correctly interoperate with each other.

Constructors

<init>

NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>)NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration)

Network parameters are a set of values that every node participating in the zone needs to agree on and use to correctly interoperate with each other.

Properties

epoch

val epoch: Int

Version number of the network parameters. Starting from 1, this will always increment on each new set of parameters.

eventHorizon

val eventHorizon: Duration

Time after which nodes will be removed from the network map if they have not been seen during this period

maxMessageSize

val maxMessageSize: Int

This is currently ignored. However, it will be wired up in a future release.

maxTransactionSize

val maxTransactionSize: Int

Maximum permitted transaction size in bytes.

minimumPlatformVersion

val minimumPlatformVersion: Int

Minimum version of Corda platform that is required for nodes in the network.

modifiedTime

val modifiedTime: Instant

Last modification time of network parameters set.

notaries

val notaries: List<NotaryInfo>

List of well known and trusted notary identities with information on validation type.

whitelistedContractImplementations

val whitelistedContractImplementations: Map<String, List<AttachmentId>>

List of whitelisted jars containing contract code for each contract class. This will be used by net.corda.core.contracts.WhitelistedByZoneAttachmentConstraint. Read more about contract constraints here: <>

Functions

copy

fun copy(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>): NetworkParameters

toString

fun toString(): String

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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