public class ChildBlockAttachment extends Attachment.AbstractAttachment implements Appendix.Prunable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment
Appendix.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, validateId
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, putBytes, validateAtFinish, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldLoadPrunable
getFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytes
public static final Appendix.Parser appendixParser
public ChildBlockAttachment(java.util.List<? extends ChildTransaction> childTransactions) throws NxtException.NotValidException
NxtException.NotValidException
public int getMyFullSize()
getMyFullSize
in interface Appendix.Prunable
protected int getMySize()
getMySize
in class Appendix.AbstractAppendix
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class Appendix.AbstractAppendix
public void putMyPrunableBytes(java.nio.ByteBuffer buffer)
putMyPrunableBytes
in interface Appendix.Prunable
protected void putMyJSON(org.json.simple.JSONObject json)
putMyJSON
in class Appendix.AbstractAppendix
public TransactionType getTransactionType()
getTransactionType
in interface Attachment
public int getChainId()
public byte[][] getChildTransactionFullHashes()
public byte[] getHash()
getHash
in interface Appendix.Prunable
public void loadPrunable(Transaction transaction, boolean includeExpiredPrunable)
loadPrunable
in class Appendix.AbstractAppendix
public boolean hasPrunableData()
hasPrunableData
in interface Appendix.Prunable
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData
in interface Appendix.Prunable