Class AppProtocolVersionOptions
Various options for a Swarm's AppProtocolVersion.
Inherited Members
Namespace: Libplanet.Net.Options
Assembly: Libplanet.Net.dll
Syntax
public class AppProtocolVersionOptions
Properties
| Improve this Doc View SourceAppProtocolVersion
The application protocol version to comply.
Declaration
public AppProtocolVersion AppProtocolVersion { get; set; }
Property Value
Type | Description |
---|---|
AppProtocolVersion |
DifferentAppProtocolVersionEncountered
The callback triggered when a node encounters an AppProtocolVersion that is different from AppProtocolVersion that is signed by a trusted party, that is, one of TrustedAppProtocolVersionSigners. Does nothing by default.
Declaration
public DifferentAppProtocolVersionEncountered DifferentAppProtocolVersionEncountered { get; set; }
Property Value
Type | Description |
---|---|
DifferentAppProtocolVersionEncountered |
TrustedAppProtocolVersionSigners
The set of PublicKeys to trust when a node encounters a Message with an AppProtocolVersion that is different from AppProtocolVersion. Any Message with an untrusted AppProtocolVersion is ignored by the node. Set to an empty set of PublicKeys by default, i.e. not to trust any Message with a different AppProtocolVersion.
Declaration
public IImmutableSet<PublicKey> TrustedAppProtocolVersionSigners { get; set; }
Property Value
Type | Description |
---|---|
IImmutableSet<PublicKey> |