Skip to content

Commit

Permalink
fix: task interval trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jun 20, 2024
1 parent d3cecec commit cd753d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bsc/consensus/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ impl<Engine: EngineTypes+ 'static> ParliaEngineTask<Engine> {
.expect("Time went backwards")
.as_secs()
- best_header.timestamp
> 10 && best_header.number != 0
< 10 || best_header.number == 0
{
info.block_hash = BlockHashOrNumber::Number(best_header.number+1);
continue;
}
info.block_hash = BlockHashOrNumber::Number(best_header.number+1);
}
_ = signal::ctrl_c() => {
info!(target: "consensus::parlia", "block event listener shutting down...");
Expand Down

0 comments on commit cd753d6

Please sign in to comment.