Skip to content

Commit

Permalink
Merge pull request #2527 from grumbach/further_expand_close_group_get
Browse files Browse the repository at this point in the history
feat: further expand close group get to close group x 1.5
  • Loading branch information
jacderida authored Dec 13, 2024
2 parents f3731d3 + f260bcc commit 4dbeb87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ant-networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ impl Network {
);
}

let closest_peers = sort_peers_by_address(&closest_peers, key, CLOSE_GROUP_SIZE + 1)?;
let expanded_close_group = CLOSE_GROUP_SIZE + CLOSE_GROUP_SIZE / 2;
let closest_peers = sort_peers_by_address(&closest_peers, key, expanded_close_group)?;
Ok(closest_peers.into_iter().cloned().collect())
}

Expand Down

0 comments on commit 4dbeb87

Please sign in to comment.