Package nxt.voting
Class PhasingPollHome
java.lang.Object
nxt.voting.PhasingPollHome
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classstatic final classfinal classfinal class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<HashFunction>static final Comparator<ChildTransaction> -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckSecretMatch(byte[] revealedSecret, PhasingParams phasingParams) static PhasingPollHomeforChain(ChildChain childChain) intgetAccountPhasedTransactionCount(long accountId) DbIterator<? extends ChildTransaction>getAccountPhasedTransactions(long accountId, int from, int to) getApproved(int height) static List<? extends ChildTransaction>getFinishingTransactions(int height) static List<ChainTransactionId>getHashedSecretPhasedTransactionIds(PhasingParams.HashVoting hashVoting, int blockchainHeight) static HashFunctiongetHashFunction(byte code) DbIterator<? extends ChildTransaction>getHoldingPhasedTransactions(long holdingId, VoteWeighting.VotingModel votingModel, long accountId, boolean withoutWhitelist, int from, int to) static List<? extends ChildTransaction>getLinkedPhasedTransactions(byte[] linkedTransactionFullHash) static List<? extends ChildTransaction>getLinkedPhasedTransactions(Transaction transaction) getPoll(byte[] fullHash) getPoll(Transaction transaction) getResult(byte[] fullHash) getResult(Transaction transaction) longgetSenderPhasedTransactionFees(long accountId) static Set<ChainTransactionId>getVotedTransactionIds(ChildTransaction transaction) DbIterator<? extends ChildTransaction>getVoterPhasedTransactions(long voterId, int from, int to) static booleanhasUnfinishedPhasedTransaction(long transactionId)
-
Field Details
-
acceptedHashFunctions
-
finishingTransactionsComparator
-
-
Method Details
-
getHashFunction
-
forChain
-
getFinishingTransactions
-
hasUnfinishedPhasedTransaction
public static boolean hasUnfinishedPhasedTransaction(long transactionId) -
checkSecretMatch
-
getLinkedPhasedTransactions
-
getLinkedPhasedTransactions
public static List<? extends ChildTransaction> getLinkedPhasedTransactions(byte[] linkedTransactionFullHash) -
getHashedSecretPhasedTransactionIds
public static List<ChainTransactionId> getHashedSecretPhasedTransactionIds(PhasingParams.HashVoting hashVoting, int blockchainHeight) -
getVotedTransactionIds
-
getResult
-
getResult
-
getApproved
-
getPoll
-
getPoll
-
getVoterPhasedTransactions
public DbIterator<? extends ChildTransaction> getVoterPhasedTransactions(long voterId, int from, int to) -
getHoldingPhasedTransactions
public DbIterator<? extends ChildTransaction> getHoldingPhasedTransactions(long holdingId, VoteWeighting.VotingModel votingModel, long accountId, boolean withoutWhitelist, int from, int to) -
getAccountPhasedTransactions
public DbIterator<? extends ChildTransaction> getAccountPhasedTransactions(long accountId, int from, int to) -
getAccountPhasedTransactionCount
public int getAccountPhasedTransactionCount(long accountId) -
getSenderPhasedTransactionFees
public long getSenderPhasedTransactionFees(long accountId)
-