Sha256: f3cdaaff7c891efa4aa7ebd86cb8f5b15e0625d67484ddefb580ecd934d5878f

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

# Automatically generated on 2015-04-07T10:52:07-07:00
# DO NOT EDIT or your changes may be overwritten
        
require 'xdr'

# === xdr source ============================================================
#
#   struct SCPStatement
#   {
#       uint64 slotIndex;   // i
#       SCPBallot ballot;   // b
#       Hash quorumSetHash; // D
#   
#       union switch (SCPStatementType type)
#       {
#       case PREPARING:
#           struct
#           {
#               SCPBallot excepted<>; // B_c
#               SCPBallot* prepared;  // p
#           } prepare;
#       case PREPARED:
#       case COMMITTING:
#       case COMMITTED:
#           void;
#       }
#       pledges;
#   };
#
# ===========================================================================
module Stellar
  class SCPStatement < XDR::Struct
    include XDR::Namespace

    autoload :Pledges

    attribute :slot_index,      Uint64
    attribute :ballot,          SCPBallot
    attribute :quorum_set_hash, Hash
    attribute :pledges,         Pledges
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stellar-base-0.0.1 generated/stellar/scp_statement.rb