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, toString
protected 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 TransactionType
public final boolean applyUnconfirmed(TransactionImpl transaction, Account senderAccount)
applyUnconfirmed
in class TransactionType
public final void apply(TransactionImpl transaction, Account senderAccount, Account recipientAccount)
apply
in class TransactionType
public final void undoUnconfirmed(TransactionImpl transaction, Account senderAccount)
undoUnconfirmed
in class TransactionType
public final void validateAttachment(Transaction transaction) throws NxtException.ValidationException
validateAttachment
in class TransactionType
NxtException.ValidationException
protected abstract void validateAttachment(FxtTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationException
protected void validateId(Transaction transaction) throws NxtException.ValidationException
validateId
in class TransactionType
NxtException.ValidationException
protected void validateId(FxtTransactionImpl transaction) throws NxtException.ValidationException
NxtException.ValidationException
public final boolean applyAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
applyAttachmentUnconfirmed
in class TransactionType
protected abstract boolean applyAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount)
public final void applyAttachment(Transaction transaction, Account senderAccount, Account recipientAccount)
applyAttachment
in class TransactionType
protected abstract void applyAttachment(FxtTransactionImpl transaction, Account senderAccount, Account recipientAccount)
public final void undoAttachmentUnconfirmed(Transaction transaction, Account senderAccount)
undoAttachmentUnconfirmed
in class TransactionType
protected abstract void undoAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount)
public final boolean isPhasingSafe()
TransactionType
isPhasingSafe
in class TransactionType
public final boolean isGlobal()
isGlobal
in class TransactionType
public final java.util.List<ChildChain> getInvolvedChildChains(Transaction transaction)
getInvolvedChildChains
in class TransactionType
protected java.util.List<ChildChain> getInvolvedChildChains(FxtTransactionImpl transaction)