Skip to content

Commit

Permalink
Check for valid address in broadcast (solana-labs#28432)
Browse files Browse the repository at this point in the history
Check for valid address
  • Loading branch information
carllin authored Oct 19, 2022
1 parent 70e83e8 commit 274d9ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/broadcast_stage/broadcast_duplicates_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl BroadcastRun for BroadcastDuplicatesRun {
.iter()
.filter_map(|shred| {
let node = cluster_nodes.get_broadcast_peer(&shred.id())?;
if ContactInfo::is_valid_address(&node.tvu, socket_addr_space) {
if !ContactInfo::is_valid_address(&node.tvu, socket_addr_space) {
return None;
}
if self
Expand Down

0 comments on commit 274d9ea

Please sign in to comment.