public class SupernodeUpdateOperation extends Operation
| Constructor and Description |
|---|
SupernodeUpdateOperation(AccountName owner,
PublicKey blockSigningKey,
Asset fee)
Create a new supernode update operation.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getBlockSigningKey()
Get the public key of the key pair that will be used to sign blocks.
|
Asset |
getFee()
Get the fee that has been paid for this supernode update.
|
AccountName |
getOwner()
Get the account name of the account for that the supernode update operation
has been executed.
|
Map<SignatureObject,PrivateKeyType> |
getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
Add the authorities which are required to sign this operation to an
existing map.
|
void |
setBlockSigningKey(PublicKey blockSigningKey)
Set the public key of the key pair that will be used to sign blocks.
|
void |
setFee(Asset fee)
Set the fee that should be paid for this supernode update.
|
void |
setOwner(AccountName owner)
Set the account name of the account for that the supernode update operation
should be executed.
|
byte[] |
toByteArray()
Covert the operation into a byte array.
|
String |
toString() |
void |
validate(ValidationType validationType)
Use this method to verify that this object is valid.
|
isVirtual, mergeRequiredAuthorities, mergeRequiredAuthoritiespublic SupernodeUpdateOperation(AccountName owner, PublicKey blockSigningKey, Asset fee)
Users who wish to become a supernode must pay a fee
acceptable to the current supernodes to apply for the position and allow
voting to begin.
If the owner isn't a supernode they will become a
supernode. Supernodes are charged a fee equal to 1 weeks worth of supernode
pay which in turn is derived from the current share supply. The fee is
only applied if the owner is not already a supernode.
If the blockSigningKey is null then the
supernode is removed from contention. The network will pick the top 21
supernodes for producing blocks.
owner - The Supernode account name to set (seeblockSigningKey - The public part of the key used to sign a block (see
setBlockSigningKey(PublicKey)).fee - The fee to pay for this update (see setFee(Asset)).public AccountName getOwner()
public void setOwner(AccountName owner)
owner - The name of the account that this operation should be executed
for.InvalidParameterException - If the owner is null.public PublicKey getBlockSigningKey()
public void setBlockSigningKey(PublicKey blockSigningKey)
blockSigningKey - The public key of the key pair that will be used to sign
blocks.InvalidParameterException - If the blockSigningKey is null.public Asset getFee()
public void setFee(Asset fee)
fee paid to register a new supernode, should be 10x current
block production pay.fee - The fee that should be paid for this supernode update.InvalidParameterException - If the provided asset object is null.public byte[] toByteArray()
throws BeowulfInvalidTransactionException
ByteTransformableBeowulfInvalidTransactionException - If there was a problem while transforming the transaction
into a byte array.public Map<SignatureObject,PrivateKeyType> getRequiredAuthorities(Map<SignatureObject,PrivateKeyType> requiredAuthoritiesBase)
OperationgetRequiredAuthorities in class OperationrequiredAuthoritiesBase - A map to which the required authorities of this operation
should be added to.public void validate(ValidationType validationType)
ValidatablevalidationType - An indicator telling the method what should be validated.Copyright © 2019. All rights reserved.