lighthouse-pulse/beacon_node/eth2_libp2p
Pawan Dhananjay 02fd54bea7 Refactor discovery queries (#2518)
## Issue Addressed

N/A

## Proposed Changes

Refactor discovery queries such that only `QueryType::Subnet` queries are queued for grouping. `QueryType::FindPeers` is always made regardless of the number of active `Subnet` queries (max = 2). This prevents `FindPeers` queries from getting starved if `Subnet` queries start queuing up. 

Also removes `GroupedQueryType` struct and use `QueryType` for all queuing and processing of discovery requests.

## Additional Info

Currently, no distinction is made between subnet discovery queries for attestation and sync committee subnets when grouping queries. Potentially we could prioritise attestation queries over sync committee queries in the future.
2021-08-24 00:12:13 +00:00
..
src Refactor discovery queries (#2518) 2021-08-24 00:12:13 +00:00
tests Altair networking (#2300) 2021-08-04 01:44:57 +00:00
Cargo.toml Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00