This repository was archived by the owner on Feb 17, 2025. It is now read-only.
feat: adding functionality to stop sequencer on specific batch num from config param.#2282
Merged
Psykepro merged 1 commit intorelease/v0.2.0from Jul 13, 2023
Merged
Conversation
8212c67 to
7e1287d
Compare
agnusmor
reviewed
Jul 12, 2023
…om config param. Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
7e1287d to
e7e9f5b
Compare
agnusmor
approved these changes
Jul 13, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2281
What does this PR do?
This pull request introduces a new configuration parameter for the sequencer,
StopSequencerOnBatchNum. The purpose of this parameter is to offer more control over the operation of the sequencer. It allows system operators to halt the sequencer's transaction processing at a specific batch number, which can be helpful for various operational scenarios.Here are the main changes implemented:
StopSequencerOnBatchNumParameter: A new parameter,StopSequencerOnBatchNum, has been added to the sequencer configuration.Modified
finalizeBatchesFunction: The main loop of thefinalizeBatchesfunction has been updated to check the current batch number againstStopSequencerOnBatchNum. If they are equal, the function halts and logs a message to indicate that it has stopped processing new transactions at the specified batch number.Handled Disabling of the Feature: If
StopSequencerOnBatchNumis set to0, the function treats this as a signal that the stopping feature is disabled. It then continues to function as it would normally.Reviewers