Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Add StopSequencerOnBatchNum config and functionality #2281

@Psykepro

Description

@Psykepro

Summary:

We propose to introduce a new configuration parameter for the sequencer, StopSequencerOnBatchNum. This parameter will specify a batch number at which the sequencer should halt processing new transactions.

Requirement:

The main loop of the finalizeBatches function should stop when the batch number (work-in-progress) equals the StopSequencerOnBatchNum parameter. Upon reaching this batch number, the finalizer should indefinitely halt, reporting that it has reached the specified batch and stopped processing new transactions. If StopSequencerOnBatchNum equals 0, this signifies that this feature is disabled and the finalizer should continue to function normally.

Implementation Steps:

  1. Add new config parameter:

    • Introduce StopSequencerOnBatchNum parameter to the sequencer configuration.
  2. Update finalizeBatches:

    • Modify the finalizeBatches function to check for the StopSequencerOnBatchNum and halt when the current batch number equals this parameter.
  3. Handle StopSequencerOnBatchNum equals 0:

    • If StopSequencerOnBatchNum equals 0, the finalizer should continue processing as usual, signifying that the stopping feature is disabled.

Motivation:

This feature provides more control over the sequencer's transaction processing. It allows operators to stop transaction processing at a specific batch number, offering enhanced flexibility and control over system operation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions