Merge readiness endpoint (#3349)

## Issue Addressed

Resolves final task in https://github.com/sigp/lighthouse/issues/3260

## Proposed Changes

Adds a lighthouse http endpoint to indicate merge readiness.

Blocked on #3339
This commit is contained in:
Pawan Dhananjay
2022-07-21 05:45:39 +00:00
parent e32868458f
commit 612cdb7092
4 changed files with 63 additions and 14 deletions

View File

@@ -359,7 +359,7 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
"terminal_total_difficulty" => %ttd,
"current_difficulty" => current_difficulty
.map(|d| d.to_string())
.unwrap_or_else(|_| "??".into()),
.unwrap_or_else(|| "??".into()),
)
}
MergeConfig {
@@ -382,7 +382,7 @@ async fn merge_readiness_logging<T: BeaconChainTypes>(
"config" => ?other
),
},
readiness @ MergeReadiness::ExchangeTransitionConfigurationFailed(_) => {
readiness @ MergeReadiness::ExchangeTransitionConfigurationFailed { error: _ } => {
error!(
log,
"Not ready for merge";