mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-10 04:51:22 +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.
20 lines
434 B
Rust
20 lines
434 B
Rust
#[macro_use]
|
|
extern crate lazy_static;
|
|
|
|
mod block_cache;
|
|
mod deposit_cache;
|
|
mod deposit_log;
|
|
pub mod http;
|
|
mod inner;
|
|
mod metrics;
|
|
mod service;
|
|
|
|
pub use block_cache::{BlockCache, Eth1Block};
|
|
pub use deposit_cache::DepositCache;
|
|
pub use deposit_log::DepositLog;
|
|
pub use inner::SszEth1Cache;
|
|
pub use service::{
|
|
BlockCacheUpdateOutcome, Config, DepositCacheUpdateOutcome, Error, Service, DEFAULT_CHAIN_ID,
|
|
DEFAULT_NETWORK_ID,
|
|
};
|