xdr/Stellar-overlay.x in stellar-base-0.8.0 vs xdr/Stellar-overlay.x in stellar-base-0.9.0
- old
+ new
@@ -31,10 +31,11 @@
struct Hello
{
uint32 ledgerVersion;
uint32 overlayVersion;
+ uint32 overlayMinVersion;
Hash networkID;
string versionStr<100>;
int listeningPort;
NodeID peerID;
AuthCert cert;
@@ -60,19 +61,19 @@
{
case IPv4:
opaque ipv4[4];
case IPv6:
opaque ipv6[16];
- } ip;
+ }
+ ip;
uint32 port;
uint32 numFailures;
};
enum MessageType
{
ERROR_MSG = 0,
- HELLO = 1,
AUTH = 2,
DONT_HAVE = 3,
GET_PEERS = 4, // gets a list of peers this guy knows about
PEERS = 5,
@@ -83,11 +84,15 @@
TRANSACTION = 8, // pass on a tx you have heard about
// SCP
GET_SCP_QUORUMSET = 9,
SCP_QUORUMSET = 10,
- SCP_MESSAGE = 11
+ SCP_MESSAGE = 11,
+ GET_SCP_STATE = 12,
+
+ // new messages
+ HELLO = 13
};
struct DontHave
{
MessageType type;
@@ -122,15 +127,20 @@
uint256 qSetHash;
case SCP_QUORUMSET:
SCPQuorumSet qSet;
case SCP_MESSAGE:
SCPEnvelope envelope;
+case GET_SCP_STATE:
+ uint32 getSCPLedgerSeq; // ledger seq requested ; if 0, requests the latest
};
-struct AuthenticatedMessage
+union AuthenticatedMessage switch (uint32 v)
{
+case 0:
+ struct
+{
uint64 sequence;
StellarMessage message;
HmacSha256Mac mac;
+ } v0;
};
-
}