mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 09:47:38 +00:00
2bc9115a94
## Issue Addressed #1378 ## Proposed Changes Boot node reuses code from beacon_node to initialize network config. This also enables using the network directory to store/load the enr and the private key. ## Additional Info Note that before this PR the port cli arguments were off (the argument was named `enr-port` but used as `boot-node-enr-port`). Therefore as port always the cli port argument was used (for both enr and listening). Now the enr-port argument can be used to overwrite the listening port as the public port others should connect to. Last but not least note, that this restructuring reuses `ethlibp2p::NetworkConfig` that has many more options than the ones used in the boot node. For example the network config has an own `discv5_config` field that gets never used in the boot node and instead another `Discv5Config` gets created later in the boot node process. Co-authored-by: Age Manning <Age@AgeManning.com>
22 lines
476 B
TOML
22 lines
476 B
TOML
[package]
|
|
name = "boot_node"
|
|
version = "0.2.6"
|
|
authors = ["Sigma Prime <contact@sigmaprime.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
beacon_node = { path = "../beacon_node" }
|
|
clap = "2.33.0"
|
|
eth2_libp2p = { path = "../beacon_node/eth2_libp2p" }
|
|
slog = "2.5.2"
|
|
sloggers = "1.0.1"
|
|
tokio = "0.2.21"
|
|
log = "0.4.8"
|
|
slog-term = "2.6.0"
|
|
logging = { path = "../common/logging" }
|
|
slog-async = "2.5.0"
|
|
slog-scope = "4.3.0"
|
|
slog-stdlog = "4.0.0"
|
|
futures = "0.3.5"
|
|
discv5 = "0.1.0-alpha.5"
|