Skip to content

Fix stake module and allow slashing and unstaking in the same block. #161

@shamil-gadelshin

Description

@shamil-gadelshin

Stake module public API includes:

  • initiate_slashing - with slash_period parameter
  • initiate_unstaking - with unstaking_period parameter

Currently, it is possible to call initiate_unstaking with zero unstaking_period to perform instant unstaking. But initiate_slashing demands greater than zero slash_period. Combined, these two functions cause an error when used together on instant unstaking with some slashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions