From 56bd71d5adc439f5164c932fca711c530adc6766 Mon Sep 17 00:00:00 2001 From: nicolas <48695862+merklefruit@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:42:01 +0200 Subject: [PATCH] fix: update slot --- bolt-boost/src/server.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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