public 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.
Constructor and Description |
---|
NetworkParameters(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations,
java.time.Duration eventHorizon,
java.util.Map<java.lang.String,? extends java.security.PublicKey> packageOwnership)
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.
|
NetworkParameters(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations) |
NetworkParameters(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations,
java.time.Duration eventHorizon) |
Modifier and Type | Method and Description |
---|---|
int |
component1()
Minimum version of Corda platform that is required for nodes in the network.
|
java.util.List<net.corda.core.node.NotaryInfo> |
component2()
List of well known and trusted notary identities with information on validation type.
|
int |
component3()
Maximum allowed size in bytes of an individual message sent over the wire.
|
int |
component4()
Maximum permitted transaction size in bytes.
|
java.time.Instant |
component5()
(
|
int |
component6()
(
|
java.util.Map<java.lang.String,java.util.List> |
component7()
(
|
java.time.Duration |
component8()
Time after which nodes will be removed from the network map if they have not been seen
|
java.util.Map<java.lang.String,java.security.PublicKey> |
component9()
(
|
NetworkParameters |
copy(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations,
java.time.Duration eventHorizon)
This is to address backwards compatibility of the API, invariant to package ownership
addresses bug CORDA-2769
|
NetworkParameters |
copy(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations)
This is to address backwards compatibility of the API, invariant to package ownership
addresses bug CORDA-2769
|
NetworkParameters |
copy(int minimumPlatformVersion,
java.util.List<net.corda.core.node.NotaryInfo> notaries,
int maxMessageSize,
int maxTransactionSize,
java.time.Instant modifiedTime,
int epoch,
java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations,
java.time.Duration eventHorizon,
java.util.Map<java.lang.String,? extends java.security.PublicKey> packageOwnership)
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.
|
boolean |
equals(java.lang.Object p) |
int |
getEpoch()
(
|
java.time.Duration |
getEventHorizon()
Time after which nodes will be removed from the network map if they have not been seen
|
int |
getMaxMessageSize()
Maximum allowed size in bytes of an individual message sent over the wire.
|
int |
getMaxTransactionSize()
Maximum permitted transaction size in bytes.
|
int |
getMinimumPlatformVersion()
Minimum version of Corda platform that is required for nodes in the network.
|
java.time.Instant |
getModifiedTime()
(
|
java.util.List<net.corda.core.node.NotaryInfo> |
getNotaries()
List of well known and trusted notary identities with information on validation type.
|
java.util.Map<java.lang.String,java.security.PublicKey> |
getPackageOwnership()
(
|
java.util.Map<java.lang.String,java.util.List> |
getWhitelistedContractImplementations()
(
|
int |
hashCode() |
java.lang.String |
toString() |
public NetworkParameters(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations, java.time.Duration eventHorizon, java.util.Map<java.lang.String,? extends java.security.PublicKey> packageOwnership)
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.
minimumPlatformVersion
- Minimum version of Corda platform that is required for nodes in the network.notaries
- List of well known and trusted notary identities with information on validation type.maxMessageSize
- Maximum allowed size in bytes of an individual message sent over the wire.maxTransactionSize
- Maximum permitted transaction size in bytes.modifiedTime
- (interface AutoAcceptable
) Last modification time of network parameters set.epoch
- (interface AutoAcceptable
) Version number of the network parameters. Starting from 1, this will always increment on each new setof parameters.whitelistedContractImplementations
- (interface AutoAcceptable
) List of whitelisted jars containing contract code for each contract class.This will be used by class WhitelistedByZoneAttachmentConstraint
.You can learn more about contract constraints here.eventHorizon
- Time after which nodes will be removed from the network map if they have not been seenduring this periodpackageOwnership
- (interface AutoAcceptable
) List of the network-wide java packages that were successfully claimed by their owners.Any CorDapp JAR that offers contracts and states in any of these packages must be signed by the owner.public NetworkParameters(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations)
public NetworkParameters(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations, java.time.Duration eventHorizon)
public NetworkParameters copy(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations, java.time.Duration eventHorizon)
This is to address backwards compatibility of the API, invariant to package ownership addresses bug CORDA-2769
public NetworkParameters copy(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations)
This is to address backwards compatibility of the API, invariant to package ownership addresses bug CORDA-2769
public java.lang.String toString()
public int getMinimumPlatformVersion()
Minimum version of Corda platform that is required for nodes in the network.
public java.util.List<net.corda.core.node.NotaryInfo> getNotaries()
List of well known and trusted notary identities with information on validation type.
public int getMaxMessageSize()
Maximum allowed size in bytes of an individual message sent over the wire.
public int getMaxTransactionSize()
Maximum permitted transaction size in bytes.
public java.time.Instant getModifiedTime()
(
interface AutoAcceptable
) Last modification time of network parameters set.
interface AutoAcceptable
public int getEpoch()
(
interface AutoAcceptable
) Version number of the network parameters. Starting from 1, this will always increment on each new setof parameters.
interface AutoAcceptable
public java.util.Map<java.lang.String,java.util.List> getWhitelistedContractImplementations()
(
interface AutoAcceptable
) List of whitelisted jars containing contract code for each contract class.This will be used by class WhitelistedByZoneAttachmentConstraint
.You can learn more about contract constraints here.
public java.time.Duration getEventHorizon()
Time after which nodes will be removed from the network map if they have not been seen
during this period
public java.util.Map<java.lang.String,java.security.PublicKey> getPackageOwnership()
(
interface AutoAcceptable
) List of the network-wide java packages that were successfully claimed by their owners.Any CorDapp JAR that offers contracts and states in any of these packages must be signed by the owner.
interface AutoAcceptable
public int component1()
Minimum version of Corda platform that is required for nodes in the network.
public java.util.List<net.corda.core.node.NotaryInfo> component2()
List of well known and trusted notary identities with information on validation type.
public int component3()
Maximum allowed size in bytes of an individual message sent over the wire.
public int component4()
Maximum permitted transaction size in bytes.
public java.time.Instant component5()
(
interface AutoAcceptable
) Last modification time of network parameters set.
interface AutoAcceptable
public int component6()
(
interface AutoAcceptable
) Version number of the network parameters. Starting from 1, this will always increment on each new setof parameters.
interface AutoAcceptable
public java.util.Map<java.lang.String,java.util.List> component7()
(
interface AutoAcceptable
) List of whitelisted jars containing contract code for each contract class.This will be used by class WhitelistedByZoneAttachmentConstraint
.You can learn more about contract constraints here.
public java.time.Duration component8()
Time after which nodes will be removed from the network map if they have not been seen
during this period
public java.util.Map<java.lang.String,java.security.PublicKey> component9()
(
interface AutoAcceptable
) List of the network-wide java packages that were successfully claimed by their owners.Any CorDapp JAR that offers contracts and states in any of these packages must be signed by the owner.
interface AutoAcceptable
public NetworkParameters copy(int minimumPlatformVersion, java.util.List<net.corda.core.node.NotaryInfo> notaries, int maxMessageSize, int maxTransactionSize, java.time.Instant modifiedTime, int epoch, java.util.Map<java.lang.String,? extends java.util.List<? extends net.corda.core.crypto.SecureHash>> whitelistedContractImplementations, java.time.Duration eventHorizon, java.util.Map<java.lang.String,? extends java.security.PublicKey> packageOwnership)
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.
public int hashCode()
public boolean equals(java.lang.Object p)