Package org.stellar.sdk.xdr
Class SCPStatement
java.lang.Object
org.stellar.sdk.xdr.SCPStatement
SCPStatement's original definition in the XDR file is:
struct SCPStatement { NodeID nodeID; // v uint64 slotIndex; // i union switch (SCPStatementType type) { case SCP_ST_PREPARE: struct { Hash quorumSetHash; // D SCPBallot ballot; // b SCPBallot* prepared; // p SCPBallot* preparedPrime; // p' uint32 nC; // c.n uint32 nH; // h.n } prepare; case SCP_ST_CONFIRM: struct { SCPBallot ballot; // b uint32 nPrepared; // p.n uint32 nCommit; // c.n uint32 nH; // h.n Hash quorumSetHash; // D } confirm; case SCP_ST_EXTERNALIZE: struct { SCPBallot commit; // c uint32 nH; // h.n Hash commitQuorumSetHash; // D used before EXTERNALIZE } externalize; case SCP_ST_NOMINATE: SCPNomination nominate; } pledges; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
SCPStatementPledges's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionSCPStatement
(NodeID nodeID, Uint64 slotIndex, SCPStatement.SCPStatementPledges pledges) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SCPStatement
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SCPStatement
fromXdrBase64
(String xdr) static SCPStatement
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
void
void
setSlotIndex
(Uint64 slotIndex) toString()
default String
default byte[]
-
Constructor Details
-
SCPStatement
public SCPStatement() -
SCPStatement
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getNodeID
-
getSlotIndex
-
getPledges
-
setNodeID
-
setSlotIndex
-
setPledges
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-