Skip to content

Commit

Permalink
Merge branch 'ENG-1031/forma_migration' of https://github.com/astriao…
Browse files Browse the repository at this point in the history
…rg/astria into ENG-1031/forma_migration
  • Loading branch information
ethanoroshiba committed Dec 13, 2024
2 parents 8988c88 + d971d5c commit fa7474c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/astria-conductor/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ impl Executor {
// executing firm blocks, we let execution continue since one more firm block will be
// executed before `execute_firm` initiates a restart. If we are in soft-only mode, we
// return a `StopHeightExceded::Sequencer` error to signal a restart.
if executable_block.height >= self.state.sequencer_stop_block_height() {
if self.state.sequencer_stop_block_height().value() > 0
&& executable_block.height >= self.state.sequencer_stop_block_height()
{
let res = if self.mode.is_with_firm() {
info!(
height = %executable_block.height,
Expand Down Expand Up @@ -503,7 +505,9 @@ impl Executor {
err,
))]
async fn execute_firm(&mut self, block: ReconstructedBlock) -> eyre::Result<()> {
if block.header.height() > self.state.sequencer_stop_block_height() {
if self.state.sequencer_stop_block_height().value() > 0
&& block.header.height() > self.state.sequencer_stop_block_height()
{
info!(
height = %block.header.height(),
"received firm block whose height is greater than stop block height. \
Expand Down

0 comments on commit fa7474c

Please sign in to comment.