/// This crate contains the main link for lighthouse to rust-libp2p. It therefore re-exports /// all required libp2p functionality. /// /// This crate builds and manages the libp2p services required by the beacon node. #[macro_use] extern crate lazy_static; pub mod behaviour; mod config; pub mod discovery; mod metrics; mod peer_manager; pub mod rpc; mod service; pub mod types; pub use crate::types::{error, Enr, GossipTopic, NetworkGlobals, PubsubMessage}; pub use behaviour::{BehaviourEvent, Request, Response}; pub use config::Config as NetworkConfig; pub use discovery::enr_ext::{CombinedKeyExt, EnrExt}; pub use libp2p::gossipsub::{MessageId, Topic, TopicHash}; pub use libp2p::{core::ConnectedPoint, PeerId, Swarm}; pub use libp2p::{multiaddr, Multiaddr}; pub use peer_manager::{client::Client, PeerDB, PeerInfo, PeerSyncStatus, SyncInfo}; pub use service::{Libp2pEvent, Service, NETWORK_KEY_FILENAME};