Skip to content

Commit 1de673d

Browse files
committed
consistency
1 parent 97c67cb commit 1de673d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

block/internal/executing/executor.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ func (e *Executor) initializeState() error {
340340
// For based sequencer, advance safe/finalized since it comes from DA.
341341
if e.config.Node.BasedSequencer && syncTargetHeight > 0 {
342342
if err := e.exec.SetFinal(e.ctx, syncTargetHeight); err != nil {
343-
e.logger.Warn().Err(err).Uint64("height", syncTargetHeight).Msg("failed to set final height after sync in based sequencer mode")
343+
e.sendCriticalError(fmt.Errorf("failed to set final height in based sequencer mode: %w", err))
344+
return fmt.Errorf("failed to set final height in based sequencer mode: %w", err)
344345
}
345346
}
346347

@@ -637,7 +638,8 @@ func (e *Executor) ProduceBlock(ctx context.Context) error {
637638
// For based sequencer, advance safe/finalized since it comes from DA.
638639
if e.config.Node.BasedSequencer {
639640
if err := e.exec.SetFinal(e.ctx, newHeight); err != nil {
640-
e.logger.Error().Err(err).Uint64("height", newHeight).Msg("failed to set final height in based sequencer mode")
641+
e.sendCriticalError(fmt.Errorf("failed to set final height in based sequencer mode: %w", err))
642+
return fmt.Errorf("failed to set final height in based sequencer mode: %w", err)
641643
}
642644
}
643645

0 commit comments

Comments
 (0)