2019-03-04 05:39:37 +00:00
|
|
|
/// 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.
|
2019-08-19 11:02:34 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
|
|
|
|
2019-03-12 06:28:11 +00:00
|
|
|
pub mod behaviour;
|
2019-03-21 01:41:05 +00:00
|
|
|
mod config;
|
2019-04-15 08:29:49 +00:00
|
|
|
mod discovery;
|
2019-03-12 06:28:11 +00:00
|
|
|
pub mod error;
|
2019-08-19 11:02:34 +00:00
|
|
|
mod metrics;
|
2019-03-17 10:49:56 +00:00
|
|
|
pub mod rpc;
|
2019-03-04 07:31:01 +00:00
|
|
|
mod service;
|
2019-03-04 05:39:37 +00:00
|
|
|
|
2019-03-25 12:02:51 +00:00
|
|
|
pub use behaviour::PubsubMessage;
|
2019-06-25 04:51:45 +00:00
|
|
|
pub use config::{
|
2019-08-10 01:44:17 +00:00
|
|
|
Config as NetworkConfig, BEACON_ATTESTATION_TOPIC, BEACON_BLOCK_TOPIC, SHARD_TOPIC_PREFIX,
|
2019-08-29 11:23:28 +00:00
|
|
|
TOPIC_ENCODING_POSTFIX, TOPIC_PREFIX,
|
2019-06-25 04:51:45 +00:00
|
|
|
};
|
2019-08-23 05:53:53 +00:00
|
|
|
pub use libp2p::enr::Enr;
|
2019-08-10 01:44:17 +00:00
|
|
|
pub use libp2p::gossipsub::{Topic, TopicHash};
|
2019-04-03 05:00:09 +00:00
|
|
|
pub use libp2p::multiaddr;
|
|
|
|
pub use libp2p::Multiaddr;
|
2019-03-04 07:31:01 +00:00
|
|
|
pub use libp2p::{
|
|
|
|
gossipsub::{GossipsubConfig, GossipsubConfigBuilder},
|
2019-08-23 05:53:53 +00:00
|
|
|
PeerId, Swarm,
|
2019-03-04 07:31:01 +00:00
|
|
|
};
|
2019-03-25 12:02:51 +00:00
|
|
|
pub use rpc::RPCEvent;
|
2019-03-12 06:28:11 +00:00
|
|
|
pub use service::Libp2pEvent;
|
2019-03-04 07:31:01 +00:00
|
|
|
pub use service::Service;
|