Package nxt.voting
Class PhasingAppendix
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.voting.PhasingAppendix
- All Implemented Interfaces:
Appendix
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Appendix.Parserstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Transaction transaction, Account senderAccount, Account recipientAccount) voidcountVotes(ChildTransactionImpl transaction) intgetBaselineFee(Transaction transaction) intprotected intbooleanbooleanprotected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) voidreject(ChildTransactionImpl transaction) voidtryCountVotes(ChildTransactionImpl transaction, Map<TransactionType, Map<String, Integer>> duplicates) voidvalidate(Transaction transaction) voidvalidateAtFinish(Transaction transaction) Methods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getBaselineFeeHeight, getFee, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateId, verifyVersion
-
Field Details
-
appendixType
public static final int appendixType- See Also:
-
appendixName
- See Also:
-
appendixParser
-
-
Constructor Details
-
PhasingAppendix
-
-
Method Details
-
getAppendixType
public int getAppendixType() -
getAppendixName
- Specified by:
getAppendixNamein classAppendix.AbstractAppendix
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Specified by:
putMyJSONin classAppendix.AbstractAppendix
-
validate
- Specified by:
validatein classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
validateAtFinish
- Overrides:
validateAtFinishin classAppendix.AbstractAppendix- Throws:
NxtException.ValidationException
-
apply
- Specified by:
applyin classAppendix.AbstractAppendix
-
isPhasable
public boolean isPhasable()- Specified by:
isPhasablein classAppendix.AbstractAppendix
-
isAllowed
-
getBaselineFee
- Specified by:
getBaselineFeein interfaceAppendix- Overrides:
getBaselineFeein classAppendix.AbstractAppendix
-
reject
-
countVotes
-
tryCountVotes
public void tryCountVotes(ChildTransactionImpl transaction, Map<TransactionType, Map<String, Integer>> duplicates) -
getFinishHeight
public int getFinishHeight() -
getLinkedTransactionsIds
-
getParams
-