lighthouse/beacon_node/lighthouse_network
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
..
src Correct a dial race condition (#2992) 2022-02-07 23:25:05 +00:00
tests Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
Cargo.toml upgrade libp2p (#2933) 2022-02-07 23:25:03 +00:00