Skip to content

Add action to remove solvers via protocol #695

@Catrya

Description

@Catrya

Currently there is an AdminAddSolver action (src/app/admin_add_solver.rs) that allows adding dispute solvers through the Mostro protocol. However, there is no corresponding action to remove a solver.

If an admin needs to revoke solver privileges from a user, the only option is to manually update the database which is not practical for production environments.

Proposal

Add a new admin action that allows revoking solver privileges from a user via the Mostro protocol.

The action name is open for discussion, some options:

  • AdminRemoveSolver
  • AdminDelSolver
  • AdminDeleteSolver

The implementation would mirror AdminAddSolver:

  • Receive the solver's pubkey as payload
  • Verify the sender is Mostro's own pubkey (admin check)
  • Check that the user exists and is currently a solver, return an error otherwise
  • Set is_solver = 0 for the given user in the database
  • Send confirmation message back to admin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions