Broadcast blobs even if the peers have no stake (#4597)
This commit is contained in:
@ -127,8 +127,6 @@ impl Broadcast {
|
|||||||
let bank_epoch = bank.get_stakers_epoch(bank.slot());
|
let bank_epoch = bank.get_stakers_epoch(bank.slot());
|
||||||
let stakes = staking_utils::staked_nodes_at_epoch(&bank, bank_epoch);
|
let stakes = staking_utils::staked_nodes_at_epoch(&bank, bank_epoch);
|
||||||
|
|
||||||
if let Some(nodes) = stakes.as_ref() {
|
|
||||||
if nodes.len() > 1 {
|
|
||||||
// Send out data
|
// Send out data
|
||||||
cluster_info
|
cluster_info
|
||||||
.read()
|
.read()
|
||||||
@ -142,8 +140,6 @@ impl Broadcast {
|
|||||||
.read()
|
.read()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.broadcast(sock, &coding, stakes.as_ref())?;
|
.broadcast(sock, &coding, stakes.as_ref())?;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
self.update_broadcast_stats(
|
self.update_broadcast_stats(
|
||||||
duration_as_ms(&broadcast_start.elapsed()),
|
duration_as_ms(&broadcast_start.elapsed()),
|
||||||
|
Reference in New Issue
Block a user