Package nxt.blockchain
Class FxtTransactionType
java.lang.Object
nxt.blockchain.TransactionType
nxt.blockchain.FxtTransactionType
- Direct Known Subclasses:
AccountControlFxtTransactionType,ChildBlockFxtTransactionType,CoinExchangeFxtTransactionType,PaymentFxtTransactionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byteprotected static final byteprotected static final byteprotected static final byteprotected static final byteprotected static final byteprotected static final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidapply(TransactionImpl transaction, Account senderAccount, Account recipientAccount) protected abstract voidapplyAttachment(FxtTransactionImpl transaction, Account senderAccount, Account recipientAccount) final voidapplyAttachment(Transaction transaction, Account senderAccount, Account recipientAccount) protected abstract booleanapplyAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount) final booleanapplyAttachmentUnconfirmed(Transaction transaction, Account senderAccount) final booleanapplyUnconfirmed(TransactionImpl transaction, Account senderAccount) static TransactionTypefindTransactionType(byte type, byte subtype) getBaselineFee(Transaction transaction) protected List<ChildChain>getInvolvedChildChains(FxtTransactionImpl transaction) final List<ChildChain>getInvolvedChildChains(Transaction transaction) final booleanisGlobal()final booleanTransaction 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 voidundoAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount) final voidundoAttachmentUnconfirmed(Transaction transaction, Account senderAccount) final voidundoUnconfirmed(TransactionImpl transaction, Account senderAccount) protected abstract voidvalidateAttachment(FxtTransactionImpl transaction) final voidvalidateAttachment(Transaction transaction) protected voidvalidateId(FxtTransactionImpl transaction) protected voidvalidateId(Transaction transaction) Methods inherited from class nxt.blockchain.TransactionType
canHaveRecipient, getBaselineFeeHeight, getLedgerEvent, getName, getNextFee, getNextFeeHeight, getSubtype, getType, isBlockDuplicate, isDuplicate, isDuplicate, isDuplicate, isPhasable, isPruned, isUnconfirmedDuplicate, mustHaveRecipient, parseAttachment, parseAttachment, toString
-
Field Details
-
TYPE_CHILDCHAIN_BLOCK
protected static final byte TYPE_CHILDCHAIN_BLOCK- See Also:
-
TYPE_PAYMENT
protected static final byte TYPE_PAYMENT- See Also:
-
TYPE_ACCOUNT_CONTROL
protected static final byte TYPE_ACCOUNT_CONTROL- See Also:
-
TYPE_COIN_EXCHANGE
protected static final byte TYPE_COIN_EXCHANGE- See Also:
-
SUBTYPE_CHILDCHAIN_BLOCK
protected static final byte SUBTYPE_CHILDCHAIN_BLOCK- See Also:
-
SUBTYPE_PAYMENT_ORDINARY_PAYMENT
protected static final byte SUBTYPE_PAYMENT_ORDINARY_PAYMENT- See Also:
-
SUBTYPE_ACCOUNT_CONTROL_EFFECTIVE_BALANCE_LEASING
protected static final byte SUBTYPE_ACCOUNT_CONTROL_EFFECTIVE_BALANCE_LEASING- See Also:
-
-
Constructor Details
-
FxtTransactionType
public FxtTransactionType()
-
-
Method Details
-
findTransactionType
-
getBaselineFee
- Specified by:
getBaselineFeein classTransactionType
-
applyUnconfirmed
- Specified by:
applyUnconfirmedin classTransactionType
-
apply
public final void apply(TransactionImpl transaction, Account senderAccount, Account recipientAccount) - Specified by:
applyin classTransactionType
-
undoUnconfirmed
- Specified by:
undoUnconfirmedin classTransactionType
-
validateAttachment
public final void validateAttachment(Transaction transaction) throws NxtException.ValidationException - Specified by:
validateAttachmentin classTransactionType- Throws:
NxtException.ValidationException
-
validateAttachment
protected abstract void validateAttachment(FxtTransactionImpl transaction) throws NxtException.ValidationException - Throws:
NxtException.ValidationException
-
validateId
- Specified by:
validateIdin classTransactionType- Throws:
NxtException.ValidationException
-
validateId
- Throws:
NxtException.ValidationException
-
applyAttachmentUnconfirmed
- Specified by:
applyAttachmentUnconfirmedin classTransactionType
-
applyAttachmentUnconfirmed
protected abstract boolean applyAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount) -
applyAttachment
public final void applyAttachment(Transaction transaction, Account senderAccount, Account recipientAccount) - Specified by:
applyAttachmentin classTransactionType
-
applyAttachment
protected abstract void applyAttachment(FxtTransactionImpl transaction, Account senderAccount, Account recipientAccount) -
undoAttachmentUnconfirmed
- Specified by:
undoAttachmentUnconfirmedin classTransactionType
-
undoAttachmentUnconfirmed
protected abstract void undoAttachmentUnconfirmed(FxtTransactionImpl transaction, Account senderAccount) -
isPhasingSafe
public final boolean isPhasingSafe()Description copied from class:TransactionTypeTransaction is Phasing Unsafe if it's validity may change between the height it is accepted in the blockchain and the height it is executed.- Specified by:
isPhasingSafein classTransactionType- Returns:
- true if it's validity cannot change
-
isGlobal
public final boolean isGlobal()- Specified by:
isGlobalin classTransactionType
-
getInvolvedChildChains
- Specified by:
getInvolvedChildChainsin classTransactionType
-
getInvolvedChildChains
-