mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
Simplify ConfigAndPreset (#7777)
I noticed that we are serving preset values for Fulu on mainnet nodes prior to the fork. This has already gone live in v7.1.0, but should hopefully be handled in a graceful way by API consumers. This PR _reverts_ the serving of Fulu data prior to Fulu, by serving Fulu data only if Fulu is scheduled.
This commit is contained in:
@@ -315,7 +315,7 @@ pub fn serve<T: 'static + SlotClock + Clone, E: EthSpec>(
|
||||
.and(spec_filter.clone())
|
||||
.then(|spec: Arc<_>| {
|
||||
blocking_json_task(move || {
|
||||
let config = ConfigAndPreset::from_chain_spec::<E>(&spec, None);
|
||||
let config = ConfigAndPreset::from_chain_spec::<E>(&spec);
|
||||
Ok(api_types::GenericResponse::from(config))
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user