Skip to content

Commit

Permalink
stop height of 0 means do not stop
Browse files Browse the repository at this point in the history
  • Loading branch information
mycodecrafting committed Dec 13, 2024
1 parent 5e562e4 commit d971d5c
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 d971d5c

Please sign in to comment.