Skip to content
Snippets Groups Projects

Fix #291

Merged Benjamin Gallois requested to merge fix-291 into master
All threads resolved!

During an offense, the validator ID/ account ID is used to identify the faulty validator. It is then converted into an identity using identity_index_of from the identity pallet. This identity is subsequently used for all further checks, such as going online or disconnecting the validator. However, the offense system must be able to resolve any validator ID to an identity when processing past offenses that were reported. Therefore, the key should not be changed during this period, which corresponds to ReportLongevity, the maximum reporting duration.

The new behavior is as follows:

  • An online smith cannot change its key.
  • An offline smith cannot change its key if it is within the bond period, ensuring it can still be punished for past actions.
  • An offline smith can change its key at any moment between the end of the last bond period and the go_online call. Even if the key is changed between set_key and go_online, the change will be reflected in the authority members' member data.
Edited by Benjamin Gallois

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Éloïs approved this merge request

    approved this merge request

  • Hugo Trentesaux
  • Hugo Trentesaux approved this merge request

    approved this merge request

  • added 1 commit

    Compare with previous version

  • Benjamin Gallois resolved all threads

    resolved all threads

  • Benjamin Gallois added 11 commits

    added 11 commits

    Compare with previous version

  • Benjamin Gallois marked this merge request as draft

    marked this merge request as draft

  • added 1 commit

    Compare with previous version

  • added 9 commits

    Compare with previous version

  • Benjamin Gallois resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • Benjamin Gallois marked this merge request as ready

    marked this merge request as ready

  • mentioned in commit 315f93ae

  • Please register or sign in to reply
    Loading