Skip to content

Commit

Permalink
Duty services (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: jking-aus <72330194+jking-aus@users.noreply.github.com>
Co-authored-by: ThreeHrSleep <151536303+ThreeHrSleep@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 9389ccd commit 2e838d8
Show file tree
Hide file tree
Showing 14 changed files with 2,166 additions and 492 deletions.
611 changes: 164 additions & 447 deletions Cargo.lock

Large diffs are not rendered by default.

76 changes: 43 additions & 33 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ members = [
"anchor/http_metrics",
"anchor/network",
"anchor/processor",
"anchor/qbft_manager",
"anchor/qbft_manager",
"anchor/signature_collector",
"anchor/validator_store",
]
resolver = "2"

Expand All @@ -22,46 +23,61 @@ edition = "2021"

# NOTE: The block below is currently not sorted by `cargo sort`. Please keep sorted manually, especially during merges!
[workspace.dependencies]
client = { path = "anchor/client" }
eth = { path = "anchor/eth" }
qbft = { path = "anchor/common/qbft" }
http_api = { path = "anchor/http_api" }
http_metrics = { path = "anchor/http_metrics" }
database = { path = "anchor/database" }
network = { path = "anchor/network" }
version = { path = "anchor/common/version" }
processor = { path = "anchor/processor" }
ssv_types = { path = "anchor/common/ssv_types" }
lighthouse_network = { git = "https://github.com/sigp/lighthouse", branch = "unstable" }
task_executor = { git = "https://github.com/sigp/lighthouse", branch = "unstable", default-features = false, features = [
"tracing",
alloy = { version = "0.6.4", features = [
"sol-types",
"transports",
"json",
"contract",
"pubsub",
"provider-ws",
"rpc-types",
"rlp",
] }
metrics = { git = "https://github.com/agemanning/lighthouse", branch = "modularize-vc" }
validator_metrics = { git = "https://github.com/agemanning/lighthouse", branch = "modularize-vc" }
sensitive_url = { git = "https://github.com/agemanning/lighthouse", branch = "modularize-vc" }
slot_clock = { git = "https://github.com/agemanning/lighthouse", branch = "modularize-vc" }
unused_port = { git = "https://github.com/sigp/lighthouse", branch = "unstable" }
types = { git = "https://github.com/sigp/lighthouse", branch = "unstable" }
anchor_validator_store = { path = "anchor/validator_store" }
async-channel = "1.9"
axum = "0.7.7"
base64 = "0.22.1"
beacon_node_fallback = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
clap = { version = "4.5.15", features = ["derive", "wrap_help"] }
client = { path = "anchor/client" }
dashmap = "6.1.0"
database = { path = "anchor/database" }
derive_more = { version = "1.0.0", features = ["full"] }
dirs = "5.0.1"
discv5 = "0.9.0"
either = "1.13.0"
eth = { path = "anchor/eth" }
eth2 = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
eth2_config = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
futures = "0.3.30"
health_metrics = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
hex = "0.4.3"
http_api = { path = "anchor/http_api" }
http_metrics = { path = "anchor/http_metrics" }
hyper = "1.4"
indexmap = "2.7.0"
lighthouse_network = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
metrics = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
network = { path = "anchor/network" }
num_cpus = "1"
openssl = "0.10.68"
parking_lot = "0.12"
qbft_manager = { path = "anchor/common/qbft" }
processor = { path = "anchor/processor" }
qbft = { path = "anchor/common/qbft" }
qbft_manager = { path = "anchor/qbft_manager" }
reqwest = "0.12.12"
rusqlite = "0.28.0"
safe_arith = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
sensitive_url = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
serde = { version = "1.0.208", features = ["derive"] }
signature_collector = { path = "anchor/signature_collector" }
slashing_protection = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
slot_clock = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
ssv_types = { path = "anchor/common/ssv_types" }
strum = { version = "0.24", features = ["derive"] }
task_executor = { git = "https://github.com/sigp/lighthouse", branch = "anchor", default-features = false, features = [
"tracing",
] }
tokio = { version = "1.39.2", features = [
"rt",
"rt-multi-thread",
Expand All @@ -74,18 +90,12 @@ tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }
tree_hash = "0.8"
tree_hash_derive = "0.8"
hex = "0.4.3"
alloy = { version = "0.6.4", features = [
"sol-types",
"transports",
"json",
"contract",
"pubsub",
"provider-ws",
"rpc-types",
"rlp",
] }
reqwest = "0.12.12"
types = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
unused_port = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
validator_metrics = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
validator_services = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
validator_store = { git = "https://github.com/sigp/lighthouse", branch = "anchor" }
version = { path = "anchor/common/version" }

[profile.maxperf]
inherits = "release"
Expand Down
1 change: 1 addition & 0 deletions anchor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ task_executor = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
types = { workspace = true }

[dev-dependencies]
regex = "1.10.6"
12 changes: 12 additions & 0 deletions anchor/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ name = "client"
path = "src/lib.rs"

[dependencies]
anchor_validator_store = { workspace = true }
beacon_node_fallback = { workspace = true }
clap = { workspace = true }
dirs = { workspace = true }
eth2 = { workspace = true }
eth2_config = { workspace = true }
ethereum_hashing = "0.7.0"
fdlimit = "0.3"
http_api = { workspace = true }
Expand All @@ -19,11 +23,19 @@ hyper = { workspace = true }
network = { workspace = true }
parking_lot = { workspace = true }
processor = { workspace = true }
qbft_manager = { workspace = true }
sensitive_url = { workspace = true }
serde = { workspace = true }
signature_collector = { workspace = true }
slashing_protection = { workspace = true }
slot_clock = { workspace = true }
ssv_types = { workspace = true }
strum = { workspace = true }
task_executor = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
types = { workspace = true }
unused_port = { workspace = true }
validator_metrics = { workspace = true }
validator_services = { workspace = true }
version = { workspace = true }
6 changes: 6 additions & 0 deletions anchor/client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ pub struct Config {
///
/// Should be similar to `["http://localhost:8080"]`
pub beacon_nodes: Vec<SensitiveUrl>,
/// An optional beacon node used for block proposals only.
pub proposer_nodes: Vec<SensitiveUrl>,
/// The http endpoints of the execution node APIs.
pub execution_nodes: Vec<SensitiveUrl>,
/// beacon node is not synced at startup.
pub allow_unsynced_beacon_node: bool,
/// If true, use longer timeouts for requests made to the beacon node.
pub use_long_timeouts: bool,
/// Configuration for the HTTP REST API.
pub http_api: http_api::Config,
/// Configuration for the network stack.
Expand Down Expand Up @@ -69,8 +73,10 @@ impl Default for Config {
data_dir,
secrets_dir,
beacon_nodes,
proposer_nodes: vec![],
execution_nodes,
allow_unsynced_beacon_node: false,
use_long_timeouts: false,
http_api: <_>::default(),
http_metrics: <_>::default(),
network: <_>::default(),
Expand Down
Loading

0 comments on commit 2e838d8

Please sign in to comment.