-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |