public class ChildBlockAttachment extends Attachment.AbstractAttachment implements Appendix.Prunable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Modifier and Type | Field and Description |
|---|---|
static Appendix.Parser |
appendixParser |
| Constructor and Description |
|---|
ChildBlockAttachment(java.util.List<? extends ChildTransaction> childTransactions) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChainId() |
byte[][] |
getChildTransactionFullHashes() |
byte[] |
getHash() |
int |
getMyFullSize() |
protected int |
getMySize() |
TransactionType |
getTransactionType() |
boolean |
hasPrunableData() |
void |
loadPrunable(Transaction transaction,
boolean includeExpiredPrunable) |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject json) |
void |
putMyPrunableBytes(java.nio.ByteBuffer buffer) |
void |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdgetFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshouldLoadPrunablegetFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytespublic static final Appendix.Parser appendixParser
public ChildBlockAttachment(java.util.List<? extends ChildTransaction> childTransactions) throws NxtException.NotValidException
NxtException.NotValidExceptionpublic int getMyFullSize()
getMyFullSize in interface Appendix.Prunableprotected int getMySize()
getMySize in class Appendix.AbstractAppendixprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class Appendix.AbstractAppendixpublic void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes in interface Appendix.Prunableprotected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON in class Appendix.AbstractAppendixpublic TransactionType getTransactionType()
getTransactionType in interface Attachmentpublic int getChainId()
public byte[][] getChildTransactionFullHashes()
public byte[] getHash()
getHash in interface Appendix.Prunablepublic void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable in class Appendix.AbstractAppendixpublic boolean hasPrunableData()
hasPrunableData in interface Appendix.Prunablepublic void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData in interface Appendix.Prunable