Package nxt.blockchain.chaincontrol
Class ChildChainControlTransactionType
java.lang.Object
nxt.blockchain.TransactionType
nxt.blockchain.ChildTransactionType
nxt.blockchain.chaincontrol.ChildChainControlTransactionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChildChainControlTransactionTypestatic final ChildChainControlTransactionTypeFields inherited from class nxt.blockchain.ChildTransactionType
TYPE_ACCOUNT_CONTROL, TYPE_ACCOUNT_PROPERTY, TYPE_ALIASES, TYPE_ASSET_EXCHANGE, TYPE_CHILD_CHAIN_CONTROL, TYPE_COIN_EXCHANGE, TYPE_DATA, TYPE_DIGITAL_GOODS, TYPE_LIGHT_CONTRACT, TYPE_MESSAGING, TYPE_MONETARY_SYSTEM, TYPE_PAYMENT, TYPE_SHUFFLING, TYPE_VOTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanapplyAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) booleanstatic TransactionTypefindTransactionType(byte subtype) bytegetType()booleanisDuplicate(Transaction transaction, Map<TransactionType, Map<String, Integer>> duplicates) booleanisGlobal()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 voidundoAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) Methods inherited from class nxt.blockchain.ChildTransactionType
apply, applyAttachment, applyAttachment, applyAttachmentUnconfirmed, applyUnconfirmed, findTransactionType, getBaselineFee, getInvolvedChildChains, getInvolvedChildChains, undoAttachmentUnconfirmed, undoUnconfirmed, validateAttachment, validateAttachment, validateId, validateIdMethods inherited from class nxt.blockchain.TransactionType
getBaselineFeeHeight, getLedgerEvent, getName, getNextFee, getNextFeeHeight, getSubtype, isBlockDuplicate, isDuplicate, isDuplicate, isPhasable, isPruned, isUnconfirmedDuplicate, mustHaveRecipient, parseAttachment, parseAttachment, toString
-
Field Details
-
ADD_PERMISSION
-
REMOVE_PERMISSION
-
-
Constructor Details
-
ChildChainControlTransactionType
public ChildChainControlTransactionType()
-
-
Method Details
-
findTransactionType
-
applyAttachmentUnconfirmed
protected boolean applyAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) - Specified by:
applyAttachmentUnconfirmedin classChildTransactionType- Parameters:
transaction- Transaction to apply as unconfirmedsenderAccount- Cached sender account- Returns:
- return false ONLY if double spending detected.
-
undoAttachmentUnconfirmed
- Specified by:
undoAttachmentUnconfirmedin classChildTransactionType
-
getType
public byte getType()- Specified by:
getTypein classTransactionType
-
canHaveRecipient
public boolean canHaveRecipient()- Specified by:
canHaveRecipientin classTransactionType
-
isPhasingSafe
public 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 boolean isGlobal()- Specified by:
isGlobalin classTransactionType
-
isDuplicate
public boolean isDuplicate(Transaction transaction, Map<TransactionType, Map<String, Integer>> duplicates) - Overrides:
isDuplicatein classTransactionType
-