lighthouse/beacon_node
Age Manning 675c7b7e26 Correct a dial race condition (#2992)
## Issue Addressed

On a network with few nodes, it is possible that the same node can be found from a subnet discovery and a normal peer discovery at the same time.

The network behaviour loads these peers into events and processes them when it has the chance. It can happen that the same peer can enter the event queue more than once and then attempt to be dialed twice. 

This PR shifts the registration of nodes in the peerdb as being dialed before they enter the NetworkBehaviour queue, preventing multiple attempts of the same peer being entered into the queue and avoiding the race condition.
2022-02-07 23:25:05 +00:00
..
beacon_chain Avoid looking up pre-finalization blocks (#2909) 2022-01-27 22:58:32 +00:00
client Removed all disable_forks (#2925) 2022-01-20 09:14:26 +00:00
eth1 Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
execution_layer Rust 1.58 lints (#2906) 2022-01-13 22:39:58 +00:00
genesis Bump crate versions (#2829) 2021-12-02 14:29:57 +11:00
http_api Add API to compute discrete validator attestation performance (#2874) 2022-01-27 22:58:31 +00:00
http_metrics Additional networking metrics (#2549) 2021-12-22 06:17:14 +00:00
lighthouse_network Correct a dial race condition (#2992) 2022-02-07 23:25:05 +00:00
network Add checks to prevent fwding old messages (#2978) 2022-02-01 01:04:24 +00:00
operation_pool Implement API for block rewards (#2628) 2022-01-27 01:06:02 +00:00
src Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
store Additional networking metrics (#2549) 2021-12-22 06:17:14 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
Cargo.toml v2.1.2 (#2980) 2022-02-01 23:53:53 +00:00