generated/stellar/scp_statement.rb in stellar-base-0.0.18 vs generated/stellar/scp_statement.rb in stellar-base-0.0.19
- old
+ new
@@ -1,30 +1,48 @@
-# Automatically generated on 2015-05-13T15:00:04-07:00
+# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten
-
+
require 'xdr'
# === xdr source ============================================================
#
# struct SCPStatement
# {
-# uint64 slotIndex; // i
-# SCPBallot ballot; // b
-# Hash quorumSetHash; // D
+# NodeID nodeID; // v
+# uint64 slotIndex; // i
#
# union switch (SCPStatementType type)
# {
-# case PREPARING:
+# case SCP_ST_PREPARE:
# struct
# {
-# SCPBallot excepted<>; // B_c
-# SCPBallot* prepared; // p
+# Hash quorumSetHash; // D
+# SCPBallot ballot; // b
+# SCPBallot* prepared; // p
+# SCPBallot* preparedPrime; // p'
+# uint32 nC; // n_c
+# uint32 nP; // n_P
# } prepare;
-# case PREPARED:
-# case COMMITTING:
-# case COMMITTED:
-# void;
+# case SCP_ST_CONFIRM:
+# struct
+# {
+# Hash quorumSetHash; // D
+# uint32 nPrepared; // n_p
+# SCPBallot commit; // c
+# uint32 nP; // n_P
+# } confirm;
+# case SCP_ST_EXTERNALIZE:
+# struct
+# {
+# SCPBallot commit; // c
+# uint32 nP; // n_P
+# // not from the paper, but useful to build tooling to
+# // traverse the graph based off only the latest statement
+# Hash commitQuorumSetHash; // D used before EXTERNALIZE
+# } externalize;
+# case SCP_ST_NOMINATE:
+# SCPNomination nominate;
# }
# pledges;
# };
#
# ===========================================================================
@@ -32,11 +50,10 @@
class SCPStatement < XDR::Struct
include XDR::Namespace
autoload :Pledges
- attribute :slot_index, Uint64
- attribute :ballot, SCPBallot
- attribute :quorum_set_hash, Hash
- attribute :pledges, Pledges
+ attribute :node_id, NodeID
+ attribute :slot_index, Uint64
+ attribute :pledges, Pledges
end
end