use crate::{success_response, ApiResult}; use beacon_chain::{BeaconChain, BeaconChainTypes}; use hyper::{Body, Request}; use std::sync::Arc; use version; /// Read the version string from the current Lighthouse build. pub fn get_version(_req: Request
) -> ApiResult { let body = Body::from( serde_json::to_string(&version::version()) .expect("Version should always be serialializable as JSON."), ); Ok(success_response(body)) } /// Read the genesis time from the current beacon chain state. pub fn get_genesis_time