mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Rename Merge to Bellatrix (#5601)
* Rename Merge to Bellatrix * Remove tree-hash-cache which got readded from the rebase
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use crate::metrics;
|
||||
use beacon_chain::{
|
||||
bellatrix_readiness::{BellatrixReadiness, GenesisExecutionPayloadStatus, MergeConfig},
|
||||
capella_readiness::CapellaReadiness,
|
||||
deneb_readiness::DenebReadiness,
|
||||
electra_readiness::ElectraReadiness,
|
||||
merge_readiness::{GenesisExecutionPayloadStatus, MergeConfig, MergeReadiness},
|
||||
BeaconChain, BeaconChainTypes, ExecutionStatus,
|
||||
};
|
||||
use lighthouse_network::{types::SyncState, NetworkGlobals};
|
||||
@@ -64,7 +64,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
|
||||
"wait_time" => estimated_time_pretty(Some(next_slot.as_secs() as f64)),
|
||||
);
|
||||
eth1_logging(&beacon_chain, &log);
|
||||
merge_readiness_logging(Slot::new(0), &beacon_chain, &log).await;
|
||||
bellatrix_readiness_logging(Slot::new(0), &beacon_chain, &log).await;
|
||||
capella_readiness_logging(Slot::new(0), &beacon_chain, &log).await;
|
||||
genesis_execution_payload_logging(&beacon_chain, &log).await;
|
||||
sleep(slot_duration).await;
|
||||
@@ -319,7 +319,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
|
||||
}
|
||||
|
||||
eth1_logging(&beacon_chain, &log);
|
||||
merge_readiness_logging(current_slot, &beacon_chain, &log).await;
|
||||
bellatrix_readiness_logging(current_slot, &beacon_chain, &log).await;
|
||||
capella_readiness_logging(current_slot, &beacon_chain, &log).await;
|
||||
deneb_readiness_logging(current_slot, &beacon_chain, &log).await;
|
||||
electra_readiness_logging(current_slot, &beacon_chain, &log).await;
|
||||
@@ -334,7 +334,7 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
|
||||
|
||||
/// Provides some helpful logging to users to indicate if their node is ready for the Bellatrix
|
||||
/// fork and subsequent merge transition.
|
||||
async fn merge_readiness_logging<T: BeaconChainTypes>(
|
||||
async fn bellatrix_readiness_logging<T: BeaconChainTypes>(
|
||||
current_slot: Slot,
|
||||
beacon_chain: &BeaconChain<T>,
|
||||
log: &Logger,
|
||||
@@ -372,8 +372,8 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
|
||||
return;
|
||||
}
|
||||
|
||||
match beacon_chain.check_merge_readiness(current_slot).await {
|
||||
MergeReadiness::Ready {
|
||||
match beacon_chain.check_bellatrix_readiness(current_slot).await {
|
||||
BellatrixReadiness::Ready {
|
||||
config,
|
||||
current_difficulty,
|
||||
} => match config {
|
||||
@@ -384,7 +384,7 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
|
||||
} => {
|
||||
info!(
|
||||
log,
|
||||
"Ready for the merge";
|
||||
"Ready for Bellatrix";
|
||||
"terminal_total_difficulty" => %ttd,
|
||||
"current_difficulty" => current_difficulty
|
||||
.map(|d| d.to_string())
|
||||
@@ -398,7 +398,7 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
|
||||
} => {
|
||||
info!(
|
||||
log,
|
||||
"Ready for the merge";
|
||||
"Ready for Bellatrix";
|
||||
"info" => "you are using override parameters, please ensure that you \
|
||||
understand these parameters and their implications.",
|
||||
"terminal_block_hash" => ?terminal_block_hash,
|
||||
@@ -411,14 +411,14 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
|
||||
"config" => ?other
|
||||
),
|
||||
},
|
||||
readiness @ MergeReadiness::NotSynced => warn!(
|
||||
readiness @ BellatrixReadiness::NotSynced => warn!(
|
||||
log,
|
||||
"Not ready for merge";
|
||||
"Not ready Bellatrix";
|
||||
"info" => %readiness,
|
||||
),
|
||||
readiness @ MergeReadiness::NoExecutionEndpoint => warn!(
|
||||
readiness @ BellatrixReadiness::NoExecutionEndpoint => warn!(
|
||||
log,
|
||||
"Not ready for merge";
|
||||
"Not ready for Bellatrix";
|
||||
"info" => %readiness,
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user