Initializes a new instance of the ProtocolVersion class.
Changes when there are significant alterations to the protocol that are not backward compatible. It would require nodes to upgrade to continue participating in the network.
Reflects backward-compatible changes. Nodes running an older version can still communicate with nodes running the updated version, but they might not take advantage of new features.
Private
#majorPrivate
#minorPrivate
#originalGets the major component of the version.
This number is increased when there are changes that are significant alterations to the protocol that are not backward compatible.
It would require nodes to upgrade to continue participating in the network.
The major version.
Gets the minor component of the version.
This number is increased when changes are backward-compatible.
Nodes running an older version can still communicate with nodes running the updated version, but they might not take advantage of new features.
The minor version.
Creates a Core ProtocolVersion object from the current ProtocolVersion object.
The Core ProtocolVersion object.
Static
fromDeserializes the ProtocolVersion from a CBOR byte array.
The new ProtocolVersion instance.
The CBOR encoded ProtocolVersion object.
Static
fromCreates a ProtocolVersion object from the given Core ProtocolVersion object.
core ProtocolVersion object.
Generated using TypeDoc
The protocol can be thought of as the set of rules that nodes in the network agree to follow, and this versioning system helps nodes to keep track of which set of rules they are adhering to and also allows for the decentralized updating of the protocol parameters without requiring a hard fork.