Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bolt-boost): update slot #279

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions bolt-boost/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ async fn get_header_with_proofs(
Path(params): Path<GetHeaderParams>,
req_headers: HeaderMap,
) -> Result<impl IntoResponse, PbsClientError> {
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()
Expand All @@ -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
Expand Down