forked from stellar/stellar-xdr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Stellar-internal.x
48 lines (42 loc) · 1.02 KB
/
Stellar-internal.x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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 StoredDebugTransactionSet
{
StoredTransactionSet txSet;
uint32 ledgerSeq;
StellarValue scpValue;
};
struct PersistedSCPStateV0
{
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
StoredTransactionSet txSets<>;
};
struct PersistedSCPStateV1
{
// Tx sets are saved separately
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
};
union PersistedSCPState switch (int v)
{
case 0:
PersistedSCPStateV0 v0;
case 1:
PersistedSCPStateV1 v1;
};
}