Skip to content

Cleanups#5234

Merged
marta-lokhova merged 2 commits into
stellar:masterfrom
marta-lokhova:fixesApril17
Apr 18, 2026
Merged

Cleanups#5234
marta-lokhova merged 2 commits into
stellar:masterfrom
marta-lokhova:fixesApril17

Conversation

@marta-lokhova
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes a few small overlay/network “cleanup” adjustments, improving robustness of advert batching, tightening AUTH processing order, and bumping the overlay protocol version constant.

Changes:

  • Flush outgoing tx adverts when the queue size exceeds (not only equals) the computed max advert size.
  • Move the AUTH flow-control-flag validation earlier in Peer::recvAuth() (before peer record update / acceptance).
  • Bump OVERLAY_PROTOCOL_VERSION from 40 to 41.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/overlay/TxAdverts.cpp Makes advert flushing resilient to cases where the queue can exceed the computed threshold.
src/overlay/Peer.cpp Reorders AUTH validation to reject incompatible peers before updating/accepting them.
src/main/Config.cpp Updates the configured maximum overlay protocol version.

Comment thread src/overlay/TxAdverts.cpp
Comment thread src/overlay/Peer.cpp
Copy link
Copy Markdown
Contributor

@SirTyson SirTyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marta-lokhova marta-lokhova added this pull request to the merge queue Apr 17, 2026
Merged via the queue into stellar:master with commit 664b424 Apr 18, 2026
71 checks passed
@marta-lokhova marta-lokhova deleted the fixesApril17 branch April 18, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants