mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 03:42:46 +00:00
* Initial work on removing libp2p lock * Removes lock from libp2p service * Completed network lock removal * Correct network termination future * Correct fmt issues * Remove Drop implementation for network service * Address reviewers suggestions * Fix dht persistence test (#844) * Fix persistence test * Block until dht is persisted * Fix libp2p test * Correct test ordering check * Remove expensive tests from debug testing Co-authored-by: Pawan Dhananjay <pawandhananjay@gmail.com>
33 lines
837 B
Rust
33 lines
837 B
Rust
/// 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;
|
|
mod discovery;
|
|
pub mod error;
|
|
mod globals;
|
|
mod metrics;
|
|
pub mod rpc;
|
|
mod service;
|
|
mod topics;
|
|
|
|
pub use behaviour::PubsubMessage;
|
|
pub use config::Config as NetworkConfig;
|
|
pub use globals::NetworkGlobals;
|
|
pub use libp2p::enr::Enr;
|
|
pub use libp2p::gossipsub::{MessageId, Topic, TopicHash};
|
|
pub use libp2p::multiaddr;
|
|
pub use libp2p::Multiaddr;
|
|
pub use libp2p::{
|
|
gossipsub::{GossipsubConfig, GossipsubConfigBuilder},
|
|
PeerId, Swarm,
|
|
};
|
|
pub use rpc::RPCEvent;
|
|
pub use service::Libp2pEvent;
|
|
pub use service::Service;
|
|
pub use topics::GossipTopic;
|