Package org.stellar.sdk.xdr
Class LedgerCloseMetaV0
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseMetaV0
LedgerCloseMetaV0's original definition in the XDR file is:
struct LedgerCloseMetaV0
{
LedgerHeaderHistoryEntry ledgerHeader;
// NB: txSet is sorted in "Hash order"
TransactionSet txSet;
// NB: transactions are sorted in apply order here
// fees for all transactions are processed first
// followed by applying transactions
TransactionResultMeta txProcessing<>;
// upgrades are applied last
UpgradeEntryMeta upgradesProcessing<>;
// other misc information attached to the ledger close
SCPHistoryEntry scpInfo<>;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseMetaV0(LedgerHeaderHistoryEntry ledgerHeader, TransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseMetaV0decode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LedgerCloseMetaV0fromXdrBase64(String xdr) static LedgerCloseMetaV0fromXdrByteArray(byte[] xdr) getTxSet()inthashCode()voidsetLedgerHeader(LedgerHeaderHistoryEntry ledgerHeader) voidsetScpInfo(SCPHistoryEntry[] scpInfo) voidsetTxProcessing(TransactionResultMeta[] txProcessing) voidsetTxSet(TransactionSet txSet) voidsetUpgradesProcessing(UpgradeEntryMeta[] upgradesProcessing) toString()default Stringdefault byte[]
-
Constructor Details
-
LedgerCloseMetaV0
public LedgerCloseMetaV0() -
LedgerCloseMetaV0
public LedgerCloseMetaV0(LedgerHeaderHistoryEntry ledgerHeader, TransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLedgerHeader
-
getTxSet
-
getTxProcessing
-
getUpgradesProcessing
-
getScpInfo
-
setLedgerHeader
-
setTxSet
-
setTxProcessing
-
setUpgradesProcessing
-
setScpInfo
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-