mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 13:07:18 +00:00
38b15deccb
## Issue Addressed part of #1883 ## Proposed Changes Adds a new cli argument `--eth1-endpoints` that can be used instead of `--eth1-endpoint` to specify a comma-separated list of endpoints. If the first endpoint returns an error for some request the other endpoints are tried in the given order. ## Additional Info Currently if the first endpoint fails the fallbacks are used silently (except for `try_fallback_test_endpoint` that is used in `do_update` which logs a `WARN` for each endpoint that is not reachable). A question is if we should add more logs so that the user gets warned if his main endpoint is for example just slow and sometimes hits timeouts.
36 lines
1.1 KiB
TOML
36 lines
1.1 KiB
TOML
[package]
|
|
name = "eth1"
|
|
version = "0.2.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
[dev-dependencies]
|
|
eth1_test_rig = { path = "../../testing/eth1_test_rig" }
|
|
toml = "0.5.6"
|
|
web3 = "0.11.0"
|
|
sloggers = "1.0.1"
|
|
environment = { path = "../../lighthouse/environment" }
|
|
|
|
[dependencies]
|
|
reqwest = { version = "0.10.8", features = ["native-tls-vendored"] }
|
|
futures = { version = "0.3.5", features = ["compat"] }
|
|
serde_json = "1.0.58"
|
|
serde = { version = "1.0.116", features = ["derive"] }
|
|
hex = "0.4.2"
|
|
types = { path = "../../consensus/types"}
|
|
merkle_proof = { path = "../../consensus/merkle_proof"}
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_derive = "0.1.0"
|
|
tree_hash = "0.1.1"
|
|
eth2_hashing = "0.1.0"
|
|
parking_lot = "0.11.0"
|
|
slog = "2.5.2"
|
|
tokio = { version = "0.2.22", features = ["full"] }
|
|
state_processing = { path = "../../consensus/state_processing" }
|
|
libflate = "1.0.2"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics"}
|
|
lazy_static = "1.4.0"
|
|
task_executor = { path = "../../common/task_executor" }
|
|
eth2 = { path = "../../common/eth2" }
|
|
fallback = { path = "../../common/fallback" }
|