Unverified Commit 90369310 authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Offences Weight for OnInitialize (#5961)



* Weight accounting for on_offence.

* Try to compute weight.

* Guesstimate upper bounds on db read/writes for slashing

* greater than or equal to

* add new trait

* Update mock.rs

* Add basic weight test

* one more test

* Update frame/staking/src/lib.rs

Co-authored-by: default avatarthiolliere <[email protected]>

* Update frame/staking/src/lib.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* Add test for offences queue

Co-authored-by: default avatarTomasz Drwięga <[email protected]>
Co-authored-by: default avatarthiolliere <[email protected]>
Co-authored-by: default avatarKian Paimani <[email protected]>
parent 14d89b7b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment