-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Manual] Marking offline collators not producing blocks during X roun…
…ds (#2259) * begin manual mark-offline * remove CandidateLastActive * fix precompile staking * comments and fmt * fix do_go_offline() weight * make it compile * apply some suggestions * test case MaxOfflineRounds < RewardPaymentDelay * fix test * add killswitch for marking offline feature * fix mock config in parachain staking precompile * add benchmark for notify_inactive_collator extrinsic * refactor benchmark * fix call to select_top_candidates in benchmark * minor changes in benchmark * add killswitch as a storage item * fmt * remove ConstBool * enable killswitch in benchmark * add enable_marking_offline extrinsic * optmize collators_len read and benchmark * Add locally-generated benchmark for notify_inactive_collator * Hook up newly added benchmark to pallet call * add extra check for current round * minor changes in tests * add test * modify rounds_to_check syntax --------- Co-authored-by: Stephen Shelton <steve@brewcraft.org>
- Loading branch information
Showing
11 changed files
with
669 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.