Skip to content

feat: Toggle rpc listen mode to producer sequencer#3295

Open
ercecan wants to merge 8 commits into
listen-mode-sequencerfrom
toggle-rpc-listen-mode-to-producer-sequencer
Open

feat: Toggle rpc listen mode to producer sequencer#3295
ercecan wants to merge 8 commits into
listen-mode-sequencerfrom
toggle-rpc-listen-mode-to-producer-sequencer

Conversation

@ercecan

@ercecan ercecan commented Jun 5, 2026

Copy link
Copy Markdown
Member

Description

Rpc method to toggle the switch to producer sequencer from listen mode sequencer

@ercecan ercecan requested a review from a team as a code owner June 5, 2026 10:51
@ercecan ercecan changed the title Toggle rpc listen mode to producer sequencer feat: Toggle rpc listen mode to producer sequencer Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

⚠️ Changelog entry missing

No changes detected in CHANGELOG.md.

Recommendation:

feat: Toggle rpc listen mode to producer sequencer

Please add an entry to the CHANGELOG.md or dismiss this if the change doesn't require documentation.

To dismiss: Reply with /skip-changelog in any comment.

Comment on lines +62 to +65
const MAIN_SEQUENCER_PROBE_ATTEMPTS: u32 = 5;
/// Delay between consecutive main sequencer probes.
const MAIN_SEQUENCER_PROBE_INTERVAL: Duration = Duration::from_secs(2);
/// Per-probe request timeout when checking the main sequencer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 * 2s seems a bit high

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in, if we know for a fact that the sequencer is down/crashed, we still need to wait on these 10seconds ?

"Conversion to producer failed: {reason}"
)))
}
Err(e) => Err(internal_rpc_error(format!(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that the path on listen mode sequencer shutdown ? If not, we should reset started to false as well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a semaphore of 1 would have been less error prone instead of having to reset started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants