4b6cb3db2c
## Issue Addressed
CI is plagued by `AddrAlreadyInUse` failures, which are caused by race conditions in allocating free ports.
This PR removes all usages of the `unused_port` crate for Lighthouse's HTTP API, in favour of passing `:0` as the listen address. As a result, the listen address isn't known ahead of time and must be read from the listening socket after it binds. This requires tying some self-referential knots, which is a little disruptive, but hopefully doesn't clash too much with Deneb 🤞
There are still a few usages of `unused_tcp4_port` left in cases where we start external processes, like the `watch` Postgres DB, Anvil, Geth, Nethermind, etc. Removing these usages is non-trivial because it's hard to read the port back from an external process after starting it with `--port 0`. We might be able to do something on Linux where we read from `/proc/`, but I'll leave that for future work.
57 lines
1.9 KiB
TOML
57 lines
1.9 KiB
TOML
[package]
|
|
name = "execution_layer"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
types = { path = "../../consensus/types"}
|
|
tokio = { version = "1.10.0", features = ["full"] }
|
|
async-trait = "0.1.51"
|
|
slog = "2.5.2"
|
|
futures = "0.3.7"
|
|
sensitive_url = { path = "../../common/sensitive_url" }
|
|
reqwest = { version = "0.11.0", features = ["json","stream"] }
|
|
ethereum_serde_utils = "0.5.0"
|
|
serde_json = "1.0.58"
|
|
serde = { version = "1.0.116", features = ["derive"] }
|
|
warp = { version = "0.3.2", features = ["tls"] }
|
|
jsonwebtoken = "8"
|
|
environment = { path = "../../lighthouse/environment" }
|
|
bytes = "1.1.0"
|
|
task_executor = { path = "../../common/task_executor" }
|
|
hex = "0.4.2"
|
|
ethereum_ssz = "0.5.0"
|
|
ssz_types = "0.5.3"
|
|
eth2 = { path = "../../common/eth2" }
|
|
state_processing = { path = "../../consensus/state_processing" }
|
|
superstruct = "0.6.0"
|
|
lru = "0.7.1"
|
|
exit-future = "0.2.0"
|
|
tree_hash = "0.5.0"
|
|
tree_hash_derive = "0.5.0"
|
|
parking_lot = "0.12.0"
|
|
slot_clock = { path = "../../common/slot_clock" }
|
|
tempfile = "3.1.0"
|
|
rand = "0.8.5"
|
|
zeroize = { version = "1.4.2", features = ["zeroize_derive"] }
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
lazy_static = "1.4.0"
|
|
ethers-core = "1.0.2"
|
|
builder_client = { path = "../builder_client" }
|
|
fork_choice = { path = "../../consensus/fork_choice" }
|
|
mev-rs = { git = "https://github.com/ralexstokes/mev-rs", rev = "216657016d5c0889b505857c89ae42c7aa2764af" }
|
|
axum = "0.6"
|
|
hyper = "0.14"
|
|
ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "e380108" }
|
|
ssz_rs = "0.9.0"
|
|
tokio-stream = { version = "0.1.9", features = [ "sync" ] }
|
|
strum = "0.24.0"
|
|
keccak-hash = "0.10.0"
|
|
hash256-std-hasher = "0.15.2"
|
|
triehash = "0.8.4"
|
|
hash-db = "0.15.2"
|
|
pretty_reqwest_error = { path = "../../common/pretty_reqwest_error" }
|
|
arc-swap = "1.6.0"
|