mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Update Rust Edition to 2024 (#7766)
* #7749 Thanks @dknopik and @michaelsproul for your help!
This commit is contained in:
@@ -44,8 +44,8 @@ use super::chain_collection::{ChainCollection, SyncChainStatus};
|
||||
use super::sync_type::RangeSyncType;
|
||||
use crate::metrics;
|
||||
use crate::status::ToStatusMessage;
|
||||
use crate::sync::network_context::{RpcResponseError, SyncNetworkContext};
|
||||
use crate::sync::BatchProcessResult;
|
||||
use crate::sync::network_context::{RpcResponseError, SyncNetworkContext};
|
||||
use beacon_chain::block_verification_types::RpcBlock;
|
||||
use beacon_chain::{BeaconChain, BeaconChainTypes};
|
||||
use lighthouse_network::rpc::GoodbyeReason;
|
||||
@@ -336,15 +336,16 @@ where
|
||||
debug!(id = chain.id(), ?sync_type, reason = ?remove_reason, op, "Chain removed");
|
||||
}
|
||||
|
||||
if let RemoveChain::ChainFailed { blacklist, .. } = remove_reason {
|
||||
if RangeSyncType::Finalized == sync_type && blacklist {
|
||||
warn!(
|
||||
id = chain.id(),
|
||||
"Chain failed! Syncing to its head won't be retried for at least the next {} seconds",
|
||||
FAILED_CHAINS_EXPIRY_SECONDS
|
||||
);
|
||||
self.failed_chains.insert(chain.target_head_root);
|
||||
}
|
||||
if let RemoveChain::ChainFailed { blacklist, .. } = remove_reason
|
||||
&& RangeSyncType::Finalized == sync_type
|
||||
&& blacklist
|
||||
{
|
||||
warn!(
|
||||
id = chain.id(),
|
||||
"Chain failed! Syncing to its head won't be retried for at least the next {} seconds",
|
||||
FAILED_CHAINS_EXPIRY_SECONDS
|
||||
);
|
||||
self.failed_chains.insert(chain.target_head_root);
|
||||
}
|
||||
|
||||
metrics::inc_counter_vec_by(
|
||||
|
||||
Reference in New Issue
Block a user