Skip to content
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
5 changes: 4 additions & 1 deletion src/tasks/submit/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,12 @@ impl SubmitTask {
// drop guard before await
drop(guard);

// Fetch the previous host block, not the current host block which is currently being built
let prev_host_block = host_block_number - 1;

let Ok(Some(prev_host)) = self
.provider()
.get_block_by_number(host_block_number.into())
.get_block_by_number(prev_host_block.into())
.into_future()
.instrument(span.clone())
.await
Expand Down
Loading