2019-03-04 05:39:37 +00:00
|
|
|
[package]
|
Rename eth2_libp2p to lighthouse_network (#2702)
## Description
The `eth2_libp2p` crate was originally named and designed to incorporate a simple libp2p integration into lighthouse. Since its origins the crates purpose has expanded dramatically. It now houses a lot more sophistication that is specific to lighthouse and no longer just a libp2p integration.
As of this writing it currently houses the following high-level lighthouse-specific logic:
- Lighthouse's implementation of the eth2 RPC protocol and specific encodings/decodings
- Integration and handling of ENRs with respect to libp2p and eth2
- Lighthouse's discovery logic, its integration with discv5 and logic about searching and handling peers.
- Lighthouse's peer manager - This is a large module handling various aspects of Lighthouse's network, such as peer scoring, handling pings and metadata, connection maintenance and recording, etc.
- Lighthouse's peer database - This is a collection of information stored for each individual peer which is specific to lighthouse. We store connection state, sync state, last seen ips and scores etc. The data stored for each peer is designed for various elements of the lighthouse code base such as syncing and the http api.
- Gossipsub scoring - This stores a collection of gossipsub 1.1 scoring mechanisms that are continuously analyssed and updated based on the ethereum 2 networks and how Lighthouse performs on these networks.
- Lighthouse specific types for managing gossipsub topics, sync status and ENR fields
- Lighthouse's network HTTP API metrics - A collection of metrics for lighthouse network monitoring
- Lighthouse's custom configuration of all networking protocols, RPC, gossipsub, discovery, identify and libp2p.
Therefore it makes sense to rename the crate to be more akin to its current purposes, simply that it manages the majority of Lighthouse's network stack. This PR renames this crate to `lighthouse_network`
Co-authored-by: Paul Hauner <paul@paulhauner.com>
2021-10-19 00:30:39 +00:00
|
|
|
name = "lighthouse_network"
|
2020-08-06 03:43:05 +00:00
|
|
|
version = "0.2.0"
|
2020-08-04 02:31:41 +00:00
|
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
2023-09-22 04:30:56 +00:00
|
|
|
edition = { workspace = true }
|
2019-03-04 05:39:37 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-09-22 04:30:56 +00:00
|
|
|
discv5 = { workspace = true }
|
2024-03-26 03:10:59 +00:00
|
|
|
gossipsub = { workspace = true }
|
2023-09-22 04:30:56 +00:00
|
|
|
unsigned-varint = { version = "0.6", features = ["codec"] }
|
|
|
|
ssz_types = { workspace = true }
|
|
|
|
types = { workspace = true }
|
|
|
|
serde = { workspace = true }
|
|
|
|
ethereum_ssz = { workspace = true }
|
|
|
|
ethereum_ssz_derive = { workspace = true }
|
|
|
|
tree_hash = { workspace = true }
|
|
|
|
tree_hash_derive = { workspace = true }
|
|
|
|
slog = { workspace = true }
|
|
|
|
lighthouse_version = { workspace = true }
|
|
|
|
tokio = { workspace = true }
|
|
|
|
futures = { workspace = true }
|
|
|
|
error-chain = { workspace = true }
|
|
|
|
dirs = { workspace = true }
|
|
|
|
fnv = { workspace = true }
|
|
|
|
lazy_static = { workspace = true }
|
|
|
|
lighthouse_metrics = { workspace = true }
|
|
|
|
smallvec = { workspace = true }
|
|
|
|
tokio-io-timeout = "1"
|
|
|
|
lru = { workspace = true }
|
|
|
|
lru_cache = { workspace = true }
|
|
|
|
parking_lot = { workspace = true }
|
|
|
|
sha2 = { workspace = true }
|
|
|
|
snap = { workspace = true }
|
|
|
|
hex = { workspace = true }
|
|
|
|
tokio-util = { workspace = true }
|
|
|
|
tiny-keccak = "2"
|
|
|
|
task_executor = { workspace = true }
|
|
|
|
rand = { workspace = true }
|
|
|
|
directory = { workspace = true }
|
|
|
|
regex = { workspace = true }
|
|
|
|
strum = { workspace = true }
|
|
|
|
superstruct = { workspace = true }
|
2023-12-07 09:39:59 +00:00
|
|
|
prometheus-client = "0.22.0"
|
2023-09-22 04:30:56 +00:00
|
|
|
unused_port = { workspace = true }
|
|
|
|
delay_map = { workspace = true }
|
2024-01-31 17:32:31 +00:00
|
|
|
tracing = { workspace = true }
|
|
|
|
byteorder = { workspace = true }
|
|
|
|
bytes = { workspace = true }
|
|
|
|
either = { workspace = true }
|
|
|
|
|
|
|
|
# Local dependencies
|
|
|
|
futures-ticker = "0.0.3"
|
|
|
|
getrandom = "0.2.11"
|
|
|
|
hex_fmt = "0.3.0"
|
|
|
|
instant = "0.1.12"
|
|
|
|
void = "1.0.2"
|
|
|
|
base64 = "0.21.5"
|
|
|
|
libp2p-mplex = "0.41"
|
2020-05-17 11:16:48 +00:00
|
|
|
|
|
|
|
[dependencies.libp2p]
|
2024-01-31 17:32:31 +00:00
|
|
|
version = "0.53"
|
2021-10-29 01:59:29 +00:00
|
|
|
default-features = false
|
2024-02-27 07:29:18 +00:00
|
|
|
features = ["identify", "yamux", "noise", "dns", "tcp", "tokio", "plaintext", "secp256k1", "macros", "ecdsa", "metrics", "quic", "upnp"]
|
2019-11-27 01:47:46 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-09-22 04:30:56 +00:00
|
|
|
slog-term = { workspace = true }
|
|
|
|
slog-async = { workspace = true }
|
|
|
|
tempfile = { workspace = true }
|
|
|
|
quickcheck = { workspace = true }
|
|
|
|
quickcheck_macros = { workspace = true }
|
2024-03-26 03:10:59 +00:00
|
|
|
async-channel = { workspace = true }
|
2023-09-22 04:30:56 +00:00
|
|
|
|
|
|
|
[features]
|
|
|
|
libp2p-websocket = []
|
|
|
|
|