public class HardforkVersionVote extends BlockHeaderExtensions
| Modifier and Type | Field and Description |
|---|---|
protected TimePointSec |
hfTime |
protected HardforkVersion |
hfVersion |
| Constructor and Description |
|---|
HardforkVersionVote(HardforkVersion hfVersion,
TimePointSec hfTime)
Create a new hardfork version vote object.
|
| Modifier and Type | Method and Description |
|---|---|
TimePointSec |
getHfTime() |
HardforkVersion |
getHfVersion() |
void |
setHfTime(TimePointSec hfTime) |
void |
setHfVersion(HardforkVersion hfVersion) |
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
protected HardforkVersion hfVersion
protected TimePointSec hfTime
public HardforkVersionVote(HardforkVersion hfVersion, TimePointSec hfTime)
hfVersion - The hardfork version to set.hfTime - The hardfork time to set.public HardforkVersion getHfVersion()
public void setHfVersion(HardforkVersion hfVersion)
hfVersion - the hfVersion to setpublic TimePointSec getHfTime()
public void setHfTime(TimePointSec hfTime)
hfTime - the hfTime to setpublic String toString()
toString in class BlockHeaderExtensionspublic byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.Copyright © 2019. All rights reserved.