solana/gossip
behzad nouri 04787be8b1
encapsulates turbine peers computations of broadcast & retransmit stages (#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.
2021-07-07 00:35:25 +00:00
..
benches Move gossip modules into solana-gossip crate (#17352) 2021-05-26 09:15:46 -06:00
src encapsulates turbine peers computations of broadcast & retransmit stages (#18238) 2021-07-07 00:35:25 +00:00
tests encapsulates turbine peers computations of broadcast & retransmit stages (#18238) 2021-07-07 00:35:25 +00:00
.gitignore tmp dirs target to farf (#5079) 2019-07-12 18:28:42 -07:00
Cargo.toml chore: bump log from 0.4.11 to 0.4.14 (#18323) 2021-06-30 18:32:01 +00:00
build.rs Move gossip modules into solana-gossip crate (#17352) 2021-05-26 09:15:46 -06:00