Package nxt.blockchain
Class ChildBlockAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
nxt.blockchain.ChildBlockAttachment
- All Implemented Interfaces:
Appendix,Appendix.Prunable,Attachment
public class ChildBlockAttachment
extends Attachment.AbstractAttachment
implements Appendix.Prunable
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableNested classes/interfaces inherited from interface nxt.blockchain.Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbyte[][]byte[]getHash()intprotected intbooleanvoidloadPrunable(Transaction transaction, boolean includeExpiredPrunable) protected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject json) voidputMyPrunableBytes(ByteBuffer buffer) voidrestorePrunableData(Transaction transaction, int blockTimestamp, int height) Methods inherited from class nxt.blockchain.Attachment.AbstractAttachment
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, putBytesMethods inherited from interface nxt.blockchain.Appendix.Prunable
shouldLoadPrunable
-
Field Details
-
appendixParser
-
-
Constructor Details
-
ChildBlockAttachment
public ChildBlockAttachment(List<? extends ChildTransaction> childTransactions) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
-
Method Details
-
getMyFullSize
public int getMyFullSize()- Specified by:
getMyFullSizein interfaceAppendix.Prunable
-
getMySize
protected int getMySize()- Specified by:
getMySizein classAppendix.AbstractAppendix
-
putMyBytes
- Specified by:
putMyBytesin classAppendix.AbstractAppendix
-
putMyPrunableBytes
- Specified by:
putMyPrunableBytesin interfaceAppendix.Prunable
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject json) - Specified by:
putMyJSONin classAppendix.AbstractAppendix
-
getTransactionType
- Specified by:
getTransactionTypein interfaceAttachment
-
getChainId
public int getChainId() -
getChildTransactionFullHashes
public byte[][] getChildTransactionFullHashes() -
getHash
public byte[] getHash()- Specified by:
getHashin interfaceAppendix.Prunable
-
loadPrunable
- Overrides:
loadPrunablein classAppendix.AbstractAppendix
-
hasPrunableData
public boolean hasPrunableData()- Specified by:
hasPrunableDatain interfaceAppendix.Prunable
-
restorePrunableData
- Specified by:
restorePrunableDatain interfaceAppendix.Prunable
-