public abstract class FxtTransactionType extends TransactionType
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
SUBTYPE_ACCOUNT_CONTROL_EFFECTIVE_BALANCE_LEASING |
protected static byte |
SUBTYPE_CHILDCHAIN_BLOCK |
protected static byte |
SUBTYPE_PAYMENT_ORDINARY_PAYMENT |
protected static byte |
TYPE_ACCOUNT_CONTROL |
protected static byte |
TYPE_CHILDCHAIN_BLOCK |
protected static byte |
TYPE_COIN_EXCHANGE |
protected static byte |
TYPE_PAYMENT |
| Constructor and Description |
|---|
FxtTransactionType() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(TransactionImpl transaction,
Account senderAccount,
Account recipientAccount) |
protected abstract void |
applyAttachment(FxtTransactionImpl transaction,
Account senderAccount,
Account recipientAccount) |
void |
applyAttachment(Transaction transaction,
Account senderAccount,
Account recipientAccount) |
protected abstract boolean |
applyAttachmentUnconfirmed(FxtTransactionImpl transaction,
Account senderAccount) |
boolean |
applyAttachmentUnconfirmed(Transaction transaction,
Account senderAccount) |
boolean |
applyUnconfirmed(TransactionImpl transaction,
Account senderAccount) |
static TransactionType |
findTransactionType(byte type,
byte subtype) |
Fee |
getBaselineFee(Transaction transaction) |
protected java.util.List<ChildChain> |
getInvolvedChildChains(FxtTransactionImpl transaction) |
java.util.List<ChildChain> |
getInvolvedChildChains(Transaction transaction) |
boolean |
isGlobal() |
boolean |
isPhasingSafe()
Transaction is Phasing Unsafe if it's validity may change between the height it is accepted in the blockchain
and the height it is executed.
|
protected abstract void |
undoAttachmentUnconfirmed(FxtTransactionImpl transaction,
Account senderAccount) |
void |
undoAttachmentUnconfirmed(Transaction transaction,
Account senderAccount) |
void |
undoUnconfirmed(TransactionImpl transaction,
Account senderAccount) |
protected abstract void |
validateAttachment(FxtTransactionImpl transaction) |
void |
validateAttachment(Transaction transaction) |
protected void |
validateId(FxtTransactionImpl transaction) |
protected void |
validateId(Transaction transaction) |
canHaveRecipient, getBaselineFeeHeight, getLedgerEvent, getName, getNextFee, getNextFeeHeight, getSubtype, getType, isBlockDuplicate, isDuplicate, isDuplicate, isDuplicate, isPhasable, isPruned, isUnconfirmedDuplicate, mustHaveRecipient, parseAttachment, parseAttachment, toStringprotected static final byte TYPE_CHILDCHAIN_BLOCK
protected static final byte TYPE_PAYMENT
protected static final byte TYPE_ACCOUNT_CONTROL
protected static final byte TYPE_COIN_EXCHANGE
protected static final byte SUBTYPE_CHILDCHAIN_BLOCK
protected static final byte SUBTYPE_PAYMENT_ORDINARY_PAYMENT
protected static final byte SUBTYPE_ACCOUNT_CONTROL_EFFECTIVE_BALANCE_LEASING
public static TransactionType findTransactionType(byte type, byte subtype)
public Fee getBaselineFee(Transaction transaction)
getBaselineFee in class TransactionTypepublic final boolean applyUnconfirmed(TransactionImpl transaction, Account senderAccount)
applyUnconfirmed in class TransactionTypepublic final void apply(TransactionImpl transaction, Account senderAccount, Account recipientAccount)
apply in class TransactionTypepublic final void undoUnconfirmed(TransactionImpl transaction, Account senderAccount)
undoUnconfirmed in class TransactionTypepublic final void validateAttachment(Transaction transaction) throws NxtException.ValidationException
validateAttachment in class TransactionTypeNxtException.ValidationExceptionprotected abstract void validateAttachment(FxtTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionprotected void validateId(Transaction transaction) throws NxtException.ValidationException
validateId in class TransactionTypeNxtException.ValidationExceptionprotected void validateId(FxtTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationExceptionpublic final boolean applyAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
applyAttachmentUnconfirmed in class TransactionTypeprotected abstract boolean applyAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount)
public final void applyAttachment(Transaction transaction, Account senderAccount, Account recipientAccount)
applyAttachment in class TransactionTypeprotected abstract void applyAttachment(FxtTransactionImpl transaction, Account senderAccount, Account recipientAccount)
public final void undoAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
undoAttachmentUnconfirmed in class TransactionTypeprotected abstract void undoAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount)
public final boolean isPhasingSafe()
TransactionTypeisPhasingSafe in class TransactionTypepublic final boolean isGlobal()
isGlobal in class TransactionTypepublic final java.util.List<ChildChain> getInvolvedChildChains(Transaction transaction)
getInvolvedChildChains in class TransactionTypeprotected java.util.List<ChildChain> getInvolvedChildChains(FxtTransactionImpl transaction)