Update GET config/spec endpoint to support Deneb config (#4708)

* Update `GET config/spec` endpoint to support Deneb config.

* Update config spec `http_api` test
This commit is contained in:
Jimmy Chen
2023-09-09 16:09:50 +10:00
committed by GitHub
parent 87ec7599fe
commit 50bf40b4bc
11 changed files with 103 additions and 27 deletions

View File

@@ -296,6 +296,14 @@ impl<E: EthSpec> CandidateBeaconNode<E> {
"endpoint_capella_fork_epoch" => ?beacon_node_spec.capella_fork_epoch,
"hint" => UPDATE_REQUIRED_LOG_HINT,
);
} else if beacon_node_spec.deneb_fork_epoch != spec.deneb_fork_epoch {
warn!(
log,
"Beacon node has mismatched Deneb fork epoch";
"endpoint" => %self.beacon_node,
"endpoint_deneb_fork_epoch" => ?beacon_node_spec.deneb_fork_epoch,
"hint" => UPDATE_REQUIRED_LOG_HINT,
);
}
Ok(())