solana/core/tests
behzad nouri 570fd3f810
makes turbine peer computation consistent between broadcast and retransmit (#14910)
get_broadcast_peers is using tvu_peers:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/broadcast_stage.rs#L362-L370
which is potentially inconsistent with retransmit_peers:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/cluster_info.rs#L1332-L1345

Also, the leader does not include its own contact-info when broadcasting
shreds:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/cluster_info.rs#L1324
but on the retransmit side, slot leader is removed only _after_ neighbors and
children are computed:
https://github.com/solana-labs/solana/blob/84e52b606/core/src/retransmit_stage.rs#L383-L384
So the turbine broadcast tree is different between the two stages.

This commit:
* Removes retransmit_peers. Broadcast and retransmit stages will use tvu_peers
  consistently.
* Retransmit stage removes slot leader _before_ computing children and
  neighbors.
2021-03-24 13:34:48 +00:00
..
client.rs TestValidator now implements Drop, no need to close() it 2020-12-11 04:17:38 +00:00
cluster_info.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
crds_gossip.rs requires stakes for propagating crds values through gossip (#15561) 2021-03-12 15:50:14 +00:00
fork-selection.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
gossip.rs makes turbine peer computation consistent between broadcast and retransmit (#14910) 2021-03-24 13:34:48 +00:00
ledger_cleanup.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
rpc.rs Add more slot update notifications (#15734) 2021-03-12 21:44:06 +08:00
snapshots.rs Pacify clippy 2021-02-19 20:08:41 -08:00