Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pick up Stellar-internal.x #4

Merged
merged 1 commit into from
Jun 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Stellar-internal.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Copyright 2022 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

// This is for 'internal'-only messages that are not meant to be read/written
// by any other binaries besides a single Core instance.
%#include "xdr/Stellar-ledger.h"
%#include "xdr/Stellar-SCP.h"

namespace stellar
{
union StoredTransactionSet switch (int v)
{
case 0:
TransactionSet txSet;
case 1:
GeneralizedTransactionSet generalizedTxSet;
};

struct PersistedSCPStateV0
{
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
StoredTransactionSet txSets<>;
};

union PersistedSCPState switch (int v)
{
case 0:
PersistedSCPStateV0 v0;
};
}