Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: increase quotes fetch sample to 10 #2665

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ant-networking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ impl Network {

// consider data to be already paid for if 1/2 of the close nodes already have it
let mut peer_already_have_it = 0;
let enough_peers_already_have_it = close_nodes.len() / 2;
let enough_peers_already_have_it = CLOSE_GROUP_SIZE / 2 + 1;

// loop over responses
let mut all_quotes = vec![];
Expand Down Expand Up @@ -1115,7 +1115,7 @@ impl Network {
);
}

let expanded_close_group = CLOSE_GROUP_SIZE + CLOSE_GROUP_SIZE / 2;
let expanded_close_group = 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
Loading