moves DATA_PLANE_FANOUT to turbine (#32744)

This commit is contained in:
behzad nouri 2023-08-07 20:53:49 +00:00 committed by GitHub
parent fa3506631a
commit 0511753276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

View File

@ -99,8 +99,6 @@ use {
thiserror::Error,
};
/// The Data plane fanout size, also used as the neighborhood size
pub const DATA_PLANE_FANOUT: usize = 200;
/// milliseconds we sleep for between gossip requests
pub const GOSSIP_SLEEP_MILLIS: u64 = 100;
/// The maximum size of a bloom filter

View File

@ -44,11 +44,8 @@ fn get_retransmit_peers_deterministic(
0,
0,
);
let _retransmit_peers = cluster_nodes.get_retransmit_peers(
slot_leader,
&shred.id(),
solana_gossip::cluster_info::DATA_PLANE_FANOUT,
);
let _retransmit_peers =
cluster_nodes.get_retransmit_peers(slot_leader, &shred.id(), /*fanout:*/ 200);
}
}

View File

@ -5,7 +5,7 @@ use {
rand::{seq::SliceRandom, Rng, SeedableRng},
rand_chacha::ChaChaRng,
solana_gossip::{
cluster_info::{ClusterInfo, DATA_PLANE_FANOUT},
cluster_info::ClusterInfo,
contact_info::{LegacyContactInfo as ContactInfo, LegacyContactInfo, Protocol},
crds::GossipRoute,
crds_gossip_pull::CRDS_GOSSIP_PULL_CRDS_TIMEOUT_MS,
@ -36,6 +36,7 @@ use {
thiserror::Error,
};
const DATA_PLANE_FANOUT: usize = 200;
pub(crate) const MAX_NUM_TURBINE_HOPS: usize = 4;
#[derive(Debug, Error)]