diff --git a/bolt-boost/src/server.rs b/bolt-boost/src/server.rs index f40c5cabf..570f7ee03 100644 --- a/bolt-boost/src/server.rs +++ b/bolt-boost/src/server.rs @@ -172,6 +172,7 @@ async fn get_header_with_proofs( Path(params): Path, req_headers: HeaderMap, ) -> Result { + let slot_uuid = state.get_or_update_slot_uuid(params.slot); let ms_into_slot = ms_into_slot(params.slot, state.config.chain); let max_timeout_ms = state .pbs_config() @@ -188,8 +189,6 @@ async fn get_header_with_proofs( return Ok(StatusCode::NO_CONTENT.into_response()); } - let (_, slot_uuid) = state.get_slot_and_uuid(); - // prepare headers, except for start time which is set in `send_one_get_header` let mut send_headers = HeaderMap::new(); // TODO: error handling