public final class PhasingAppendix extends Appendix.AbstractAppendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
appendixName |
static Appendix.Parser |
appendixParser |
static int |
appendixType |
| Constructor and Description |
|---|
PhasingAppendix(int finishHeight,
PhasingParams phasingParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
void |
countVotes(ChildTransactionImpl transaction) |
java.lang.String |
getAppendixName() |
int |
getAppendixType() |
Fee |
getBaselineFee(Transaction transaction) |
int |
getFinishHeight() |
java.util.List<ChainTransactionId> |
getLinkedTransactionsIds() |
protected int |
getMySize() |
PhasingParams |
getParams() |
boolean |
isAllowed(Chain chain) |
boolean |
isPhasable() |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
void |
reject(ChildTransactionImpl transaction) |
void |
tryCountVotes(ChildTransactionImpl transaction,
java.util.Map<TransactionType,java.util.Map<java.lang.String,java.lang.Integer>> duplicates) |
void |
validate(Transaction transaction) |
void |
validateAtFinish(Transaction transaction) |
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateId, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasAppendixpublic static final int appendixType
public static final java.lang.String appendixName
public static final Appendix.Parser appendixParser
public PhasingAppendix(int finishHeight,
PhasingParams phasingParams)
public int getAppendixType()
public java.lang.String getAppendixName()
getAppendixName in class Appendix.AbstractAppendixprotected int getMySize()
getMySize in class Appendix.AbstractAppendixprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class Appendix.AbstractAppendixprotected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON in class Appendix.AbstractAppendixpublic void validate(Transaction transaction) throws NxtException.ValidationException
validate in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic void validateAtFinish(Transaction transaction) throws NxtException.ValidationException
validateAtFinish in class Appendix.AbstractAppendixNxtException.ValidationExceptionpublic void apply(Transaction transaction, Account senderAccount, Account recipientAccount)
apply in class Appendix.AbstractAppendixpublic boolean isPhasable()
isPhasable in class Appendix.AbstractAppendixpublic boolean isAllowed(Chain chain)
public Fee getBaselineFee(Transaction transaction)
getBaselineFee in interface AppendixgetBaselineFee in class Appendix.AbstractAppendixpublic void reject(ChildTransactionImpl transaction)
public void countVotes(ChildTransactionImpl transaction)
public void tryCountVotes(ChildTransactionImpl transaction, java.util.Map<TransactionType,java.util.Map<java.lang.String,java.lang.Integer>> duplicates)
public int getFinishHeight()
public java.util.List<ChainTransactionId> getLinkedTransactionsIds()
public PhasingParams getParams()