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

Trivial whitespace changes to Stellar-overlay.x to sync with curr #50

Merged
merged 1 commit into from
Oct 28, 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
17 changes: 9 additions & 8 deletions Stellar-overlay.x
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct Hello
uint256 nonce;
};


// During the roll-out phrase, pull mode will be optional.
// Therefore, we need a way to communicate with other nodes
// that we want/don't want pull mode.
Expand Down Expand Up @@ -189,6 +190,12 @@ struct TopologyResponseBody
uint32 totalOutboundPeerCount;
};

union SurveyResponseBody switch (SurveyMessageCommandType type)
{
case SURVEY_TOPOLOGY:
TopologyResponseBody topologyResponseBody;
};

const TX_ADVERT_VECTOR_MAX_SIZE = 1000;
typedef Hash TxAdvertVector<TX_ADVERT_VECTOR_MAX_SIZE>;

Expand All @@ -205,12 +212,6 @@ struct FloodDemand
TxDemandVector txHashes;
};

union SurveyResponseBody switch (SurveyMessageCommandType type)
{
case SURVEY_TOPOLOGY:
TopologyResponseBody topologyResponseBody;
};

union StellarMessage switch (MessageType type)
{
case ERROR_MSG:
Expand Down Expand Up @@ -256,9 +257,9 @@ case SEND_MORE:

// Pull mode
case FLOOD_ADVERT:
FloodAdvert floodAdvert;
FloodAdvert floodAdvert;
case FLOOD_DEMAND:
FloodDemand floodDemand;
FloodDemand floodDemand;
};

union AuthenticatedMessage switch (uint32 v)
Expand Down