Sha256: 2e80cd1cc1c95e87dddd646a8356b5dc14bcbce202590c683005ddc6ce7886c1

Contents?: true

Size: 1.72 KB

Versions: 16

Compression:

Stored size: 1.72 KB

Contents

# This code was automatically generated using xdrgen
# DO NOT EDIT or your changes may be overwritten

require 'xdr'

# === xdr source ============================================================
#
#   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;                // n_c
#               uint32 nP;                // n_P
#           } prepare;
#       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;
#   };
#
# ===========================================================================
module Stellar
  class SCPStatement < XDR::Struct
    include XDR::Namespace

    autoload :Pledges

    attribute :node_id,    NodeID
    attribute :slot_index, Uint64
    attribute :pledges,    Pledges
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
stellar-base-0.8.0 generated/stellar/scp_statement.rb
stellar-base-0.7.0 generated/stellar/scp_statement.rb
stellar-base-0.6.1 generated/stellar/scp_statement.rb
stellar-base-0.6.0 generated/stellar/scp_statement.rb
stellar-base-0.5.0 generated/stellar/scp_statement.rb
stellar-base-0.4.0 generated/stellar/scp_statement.rb
open-core-0.3.0 generated/stellar/scp_statement.rb
stellar-base-0.3.0 generated/stellar/scp_statement.rb
stellar-base-0.2.0 generated/stellar/scp_statement.rb
stellar-base-0.1.4 generated/stellar/scp_statement.rb
stellar-base-0.1.3 generated/stellar/scp_statement.rb
stellar-base-0.1.2 generated/stellar/scp_statement.rb
stellar-base-0.1.1 generated/stellar/scp_statement.rb
stellar-base-0.1.0 generated/stellar/scp_statement.rb
stellar-base-0.0.20 generated/stellar/scp_statement.rb
stellar-base-0.0.19 generated/stellar/scp_statement.rb