mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
update libp2p to version 0.54 (#6249)
* update libp2p to version 0.54.0 * address review * Merge branch 'unstable' of github.com:sigp/lighthouse into update-libp2p * Merge branch 'update-libp2p' of github.com:sigp/lighthouse into update-libp2p
This commit is contained in:
@@ -35,7 +35,11 @@ use hashlink::LinkedHashMap;
|
||||
use prometheus_client::registry::Registry;
|
||||
use rand::{seq::SliceRandom, thread_rng};
|
||||
|
||||
use libp2p::core::{multiaddr::Protocol::Ip4, multiaddr::Protocol::Ip6, Endpoint, Multiaddr};
|
||||
use libp2p::core::{
|
||||
multiaddr::Protocol::{Ip4, Ip6},
|
||||
transport::PortUse,
|
||||
Endpoint, Multiaddr,
|
||||
};
|
||||
use libp2p::identity::Keypair;
|
||||
use libp2p::identity::PeerId;
|
||||
use libp2p::swarm::{
|
||||
@@ -3161,6 +3165,7 @@ where
|
||||
peer_id: PeerId,
|
||||
_: &Multiaddr,
|
||||
_: Endpoint,
|
||||
_: PortUse,
|
||||
) -> Result<THandler<Self>, ConnectionDenied> {
|
||||
// By default we assume a peer is only a floodsub peer.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user