Skip to content

Commit 3f25991

Browse files
Merge branch 'unstable' into reduce-blob-limits
2 parents de4ab55 + 38f5f66 commit 3f25991

File tree

19 files changed

+29
-69
lines changed

19 files changed

+29
-69
lines changed

Cargo.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ crate_crypto_internal_eth_kzg_polynomial = "=0.5.1"
136136
crate_crypto_kzg_multi_open_fk20 = "=0.5.1"
137137
discv5 = { version = "0.9", features = ["libp2p"] }
138138
env_logger = "0.9"
139-
error-chain = "0.12"
140139
ethereum_hashing = "0.7.0"
141140
ethereum_serde_utils = "0.7"
142141
ethereum_ssz = "0.7"

beacon_node/client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ eth2_config = { workspace = true }
2121
slot_clock = { workspace = true }
2222
serde = { workspace = true }
2323
serde_json = { workspace = true }
24-
error-chain = { workspace = true }
2524
slog = { workspace = true }
2625
tokio = { workspace = true }
2726
futures = { workspace = true }

beacon_node/client/src/error.rs

Lines changed: 0 additions & 7 deletions
This file was deleted.

beacon_node/client/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod metrics;
44
mod notifier;
55

66
pub mod builder;
7-
pub mod error;
87

98
use beacon_chain::BeaconChain;
109
use lighthouse_network::{Enr, Multiaddr, NetworkGlobals};

beacon_node/lighthouse_network/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ slog = { workspace = true }
1818
lighthouse_version = { workspace = true }
1919
tokio = { workspace = true }
2020
futures = { workspace = true }
21-
error-chain = { workspace = true }
2221
dirs = { workspace = true }
2322
fnv = { workspace = true }
2423
metrics = { workspace = true }

beacon_node/lighthouse_network/src/discovery/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ pub mod enr_ext;
88

99
// Allow external use of the lighthouse ENR builder
1010
use crate::service::TARGET_SUBNET_PEERS;
11-
use crate::{error, Enr, NetworkConfig, NetworkGlobals, Subnet, SubnetDiscovery};
1211
use crate::{metrics, ClearDialError};
12+
use crate::{Enr, NetworkConfig, NetworkGlobals, Subnet, SubnetDiscovery};
1313
use discv5::{enr::NodeId, Discv5};
1414
pub use enr::{build_enr, load_enr_from_disk, use_or_load_enr, CombinedKey, Eth2Enr};
1515
pub use enr_ext::{peer_id_to_node_id, CombinedKeyExt, EnrExt};
@@ -205,7 +205,7 @@ impl<E: EthSpec> Discovery<E> {
205205
network_globals: Arc<NetworkGlobals<E>>,
206206
log: &slog::Logger,
207207
spec: &ChainSpec,
208-
) -> error::Result<Self> {
208+
) -> Result<Self, String> {
209209
let log = log.clone();
210210

211211
let enr_dir = match config.network_dir.to_str() {

beacon_node/lighthouse_network/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl<'a> std::fmt::Display for ClearDialError<'a> {
101101
}
102102

103103
pub use crate::types::{
104-
error, Enr, EnrSyncCommitteeBitfield, GossipTopic, NetworkGlobals, PubsubMessage, Subnet,
104+
Enr, EnrSyncCommitteeBitfield, GossipTopic, NetworkGlobals, PubsubMessage, Subnet,
105105
SubnetDiscovery,
106106
};
107107

beacon_node/lighthouse_network/src/peer_manager/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::discovery::enr_ext::EnrExt;
44
use crate::discovery::peer_id_to_node_id;
55
use crate::rpc::{GoodbyeReason, MetaData, Protocol, RPCError, RpcErrorResponse};
66
use crate::service::TARGET_SUBNET_PEERS;
7-
use crate::{error, metrics, Gossipsub, NetworkGlobals, PeerId, Subnet, SubnetDiscovery};
7+
use crate::{metrics, Gossipsub, NetworkGlobals, PeerId, Subnet, SubnetDiscovery};
88
use delay_map::HashSetDelay;
99
use discv5::Enr;
1010
use libp2p::identify::Info as IdentifyInfo;
@@ -144,7 +144,7 @@ impl<E: EthSpec> PeerManager<E> {
144144
cfg: config::Config,
145145
network_globals: Arc<NetworkGlobals<E>>,
146146
log: &slog::Logger,
147-
) -> error::Result<Self> {
147+
) -> Result<Self, String> {
148148
let config::Config {
149149
discovery_enabled,
150150
metrics_enabled,

beacon_node/lighthouse_network/src/service/gossipsub_scoring_parameters.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::types::{GossipEncoding, GossipKind, GossipTopic};
2-
use crate::{error, TopicHash};
2+
use crate::TopicHash;
33
use gossipsub::{IdentTopic as Topic, PeerScoreParams, PeerScoreThresholds, TopicScoreParams};
44
use std::cmp::max;
55
use std::collections::HashMap;
@@ -84,7 +84,7 @@ impl<E: EthSpec> PeerScoreSettings<E> {
8484
thresholds: &PeerScoreThresholds,
8585
enr_fork_id: &EnrForkId,
8686
current_slot: Slot,
87-
) -> error::Result<PeerScoreParams> {
87+
) -> Result<PeerScoreParams, String> {
8888
let mut params = PeerScoreParams {
8989
decay_interval: self.decay_interval,
9090
decay_to_zero: self.decay_to_zero,
@@ -175,7 +175,7 @@ impl<E: EthSpec> PeerScoreSettings<E> {
175175
&self,
176176
active_validators: usize,
177177
current_slot: Slot,
178-
) -> error::Result<(TopicScoreParams, TopicScoreParams, TopicScoreParams)> {
178+
) -> Result<(TopicScoreParams, TopicScoreParams, TopicScoreParams), String> {
179179
let (aggregators_per_slot, committees_per_slot) =
180180
self.expected_aggregator_count_per_slot(active_validators)?;
181181
let multiple_bursts_per_subnet_per_epoch =
@@ -256,7 +256,7 @@ impl<E: EthSpec> PeerScoreSettings<E> {
256256
fn expected_aggregator_count_per_slot(
257257
&self,
258258
active_validators: usize,
259-
) -> error::Result<(f64, usize)> {
259+
) -> Result<(f64, usize), String> {
260260
let committees_per_slot = E::get_committee_count_per_slot_with(
261261
active_validators,
262262
self.max_committees_per_slot,

0 commit comments

Comments
 (0)