public final class PhasingPoll
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PhasingPoll.PhasingPollResult |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<HashFunction> |
acceptedHashFunctions |
Modifier and Type | Method and Description |
---|---|
long |
countVotes() |
long |
getAccountId() |
static int |
getAccountPhasedTransactionCount(long accountId) |
static DbIterator<nxt.TransactionImpl> |
getAccountPhasedTransactions(long accountId,
int from,
int to) |
byte |
getAlgorithm() |
static DbIterator<PhasingPoll.PhasingPollResult> |
getApproved(int height) |
int |
getFinishHeight() |
byte[] |
getFullHash() |
byte[] |
getHashedSecret() |
static HashFunction |
getHashFunction(byte code) |
static DbIterator<nxt.TransactionImpl> |
getHoldingPhasedTransactions(long holdingId,
VoteWeighting.VotingModel votingModel,
long accountId,
boolean withoutWhitelist,
int from,
int to) |
long |
getId() |
java.util.List<byte[]> |
getLinkedFullHashes() |
static java.util.List<? extends Transaction> |
getLinkedPhasedTransactions(byte[] linkedTransactionFullHash) |
static PhasingPoll |
getPoll(long id) |
long |
getQuorum() |
static PhasingPoll.PhasingPollResult |
getResult(long id) |
static DbIterator<nxt.TransactionImpl> |
getVoterPhasedTransactions(long voterId,
int from,
int to) |
VoteWeighting |
getVoteWeighting() |
long[] |
getWhitelist() |
boolean |
verifySecret(byte[] revealedSecret) |
public static final java.util.Set<HashFunction> acceptedHashFunctions
public static HashFunction getHashFunction(byte code)
public static PhasingPoll.PhasingPollResult getResult(long id)
public static DbIterator<PhasingPoll.PhasingPollResult> getApproved(int height)
public static PhasingPoll getPoll(long id)
public static DbIterator<nxt.TransactionImpl> getVoterPhasedTransactions(long voterId, int from, int to)
public static DbIterator<nxt.TransactionImpl> getHoldingPhasedTransactions(long holdingId, VoteWeighting.VotingModel votingModel, long accountId, boolean withoutWhitelist, int from, int to)
public static DbIterator<nxt.TransactionImpl> getAccountPhasedTransactions(long accountId, int from, int to)
public static int getAccountPhasedTransactionCount(long accountId)
public static java.util.List<? extends Transaction> getLinkedPhasedTransactions(byte[] linkedTransactionFullHash)
public long[] getWhitelist()
public long getQuorum()
public byte[] getFullHash()
public java.util.List<byte[]> getLinkedFullHashes()
public byte[] getHashedSecret()
public byte getAlgorithm()
public boolean verifySecret(byte[] revealedSecret)
public long countVotes()
public final long getId()
public final long getAccountId()
public final int getFinishHeight()
public final VoteWeighting getVoteWeighting()