Skip to content

Commit f53035e

Browse files
authored
fix(env): Preflight check for current-block being built (next), not latest block (#182)
We should be checking for latest block + 1 (block the builder wants to build), not the latest block that has landed in the chain. Closes ENG-1570
1 parent 1159cbc commit f53035e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tasks/env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ impl EnvTask {
278278

279279
let (host_block_res, quincey_res) = tokio::join!(
280280
self.host_provider.get_block_by_number(host_block_number.into()),
281-
self.quincey.preflight_check(&self.config.constants, host_block_number)
281+
// We want to check that we're able to sign for the block we're gonna start building.
282+
// If not, we just want to skip all the work.
283+
self.quincey.preflight_check(&self.config.constants, host_block_number + 1)
282284
);
283285

284286
res_unwrap_or_continue!(

0 commit comments

Comments
 (0)