public class Version extends BlockHeaderExtensions
| Constructor and Description |
|---|
Version(byte majorVersion,
byte hardforkVersion,
short releaseVersion)
This class represents the basic versioning scheme of the Beowulf
blockchain.
|
Version(String versionAsString)
Like
Version(byte, byte, short), but this constructor allows to
provide the version in its String representation (e.g. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
public Version(byte majorVersion,
byte hardforkVersion,
short releaseVersion)
majorVersion - The major version to set.hardforkVersion - The hardfork version to set.releaseVersion - The release version to set.public Version(String versionAsString)
Version(byte, byte, short), but this constructor allows to
provide the version in its String representation (e.g. 0.19.2).versionAsString - The version to set.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.public String toString()
toString in class BlockHeaderExtensionsCopyright © 2019. All rights reserved.