Skip to content

dashmate group stop/restart: nodes stop one at a time, and group restart has no --force #5856

Open

Description

@shumkov

Problem

dashmate group stop and group restart stop a group's nodes one after another (packages/dashmate/src/commands/group/{stop,restart}.js). With --safe, each masternode waits for its own DKG window before stopping. Consequences:

  • Nodes already stopped stay down while later ones wait. With group restart, they stay down until the last wait ends and the group starts again.
  • If a later node's wait or check fails, the command ends there, and the nodes it already stopped stay down until the group is started again.
  • group restart has no --force flag. Without --safe, a refused DKG check on one node aborts the run, with earlier nodes already stopped.

Local networks are covered by #5841: once a local network's miner is stopped, its masternodes skip the DKG wait, because no block can come.

Possible fixes

  • Check every masternode in the group before stopping any of them. With --safe, wait until all of them are safe at the same time, then stop them together.
  • Add --force to group restart, like group stop.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions