Skip to content

Commit 184b9fb

Browse files
dylanlottprestwich
authored andcommitted
fix: query for previous host block instead of current host block
1 parent 0914fd7 commit 184b9fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tasks/submit/task.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,12 @@ impl SubmitTask {
252252
// drop guard before await
253253
drop(guard);
254254

255+
// Fetch the previous host block, not the current host block which is currently being built
256+
let prev_host_block = host_block_number - 1;
257+
255258
let Ok(Some(prev_host)) = self
256259
.provider()
257-
.get_block_by_number(host_block_number.into())
260+
.get_block_by_number(prev_host_block.into())
258261
.into_future()
259262
.instrument(span.clone())
260263
.await

0 commit comments

Comments
 (0)