Skip to content

Conversation

@KyrinCode
Copy link

This PR adds a new debug API debug_switchActiveStatus that allows dynamic control of the sequencer's pause and resume states. When the sequencer is paused, it stops producing new blocks while keeping other RPC services online.
Features

  • Dynamic Control: Pause/resume sequencer through RPC calls at any time
  • Precise Pausing: Pauses after block processing completion, won't interrupt ongoing block processing
  • Sequencer Validation: Only available on sequencer nodes, returns error on non-sequencer nodes
  • RPC Continuity: Other RPC services remain functional during pause
    Implementation Details
  • New File: zk/sequencer/sequencer_status.go - Global state manager with atomic operations
  • API Interface: Added SwitchActiveStatus method in debug_api.go
  • Integration: Added pause state check in stage_sequence_execute.go

@zjg555543
Copy link

Maybe we can use apollo

@KyrinCode KyrinCode changed the base branch from dev to dev-op September 25, 2025 07:38
@KyrinCode KyrinCode changed the base branch from dev-op to dev September 25, 2025 07:38
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.

4 participants