Improve network parameters (#5177)

* Modify network parameters for current mainnet conditions
This commit is contained in:
Age Manning
2024-02-08 02:40:47 +00:00
committed by GitHub
parent 675a231b45
commit 4db84de563
4 changed files with 3 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ const MAX_DISCOVERY_RETRY: usize = 3;
/// Note: we always allow a single FindPeers query, so we would be
/// running a maximum of `MAX_CONCURRENT_SUBNET_QUERIES + 1`
/// discovery queries at a time.
const MAX_CONCURRENT_SUBNET_QUERIES: usize = 2;
const MAX_CONCURRENT_SUBNET_QUERIES: usize = 4;
/// The max number of subnets to search for in a single subnet discovery query.
const MAX_SUBNETS_IN_QUERY: usize = 3;
/// The number of closest peers to search for when doing a regular peer search.