Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

encapsulates turbine peers computations of broadcast & retransmit stages (backport #18238) #18464

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 7, 2021

This is an automatic backport of pull request #18238 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

…ges (#18238)

Broadcast stage and retransmit stage should arrange nodes on turbine
broadcast tree in exactly same order. Additionally any changes to this
ordering (e.g. updating how unstaked nodes are handled) requires feature
gating to keep the cluster in sync.

Current implementation is scattered out over several public methods and
exposes too much of implementation details (e.g. usize indices into
peers vector) which makes code changes and checking for feature
activations more difficult.

This commit encapsulates turbine peer computations into a new struct,
and only exposes two public methods, get_broadcast_peer and
get_retransmit_peers, for call-sites.

(cherry picked from commit 04787be)
@mergify mergify bot added automerge Merge this Pull Request automatically once CI passes and removed automerge Merge this Pull Request automatically once CI passes labels Jul 7, 2021
@mergify
Copy link
Contributor Author

mergify bot commented Jul 7, 2021

automerge label removed due to a CI failure

@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Jul 7, 2021
@codecov
Copy link

codecov bot commented Jul 7, 2021

Codecov Report

Merging #18464 (6da73df) into v1.7 (ef20559) will increase coverage by 0.0%.
The diff coverage is 79.0%.

@@           Coverage Diff            @@
##             v1.7   #18464    +/-   ##
========================================
  Coverage    82.5%    82.5%            
========================================
  Files         428      433     +5     
  Lines      120239   121142   +903     
========================================
+ Hits        99199    99967   +768     
- Misses      21040    21175   +135     

@mergify mergify bot merged commit c534c92 into v1.7 Jul 7, 2021
@mergify mergify bot deleted the mergify/bp/v1.7/pr-18238 branch July 7, 2021 14:31
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
sakridge added a commit to sakridge/solana that referenced this pull request Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant