Skip to content
Unverified Commit b8c493d0 authored by Kian Paimani's avatar Kian Paimani Committed by GitHub
Browse files

First draft of offchain phragmen weights (#6032)



* Fist draft of offchain weights

* Round of review feedback

* Update frame/staking/src/lib.rs

* Fix fuzzer

* Remove some redundant comment

* Weight refund for submit solution -- potentially revert.

* First version with custom trimming of the result.

* Update frame/staking/src/benchmarking.rs

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

* Update frame/staking/src/benchmarking.rs

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

* Apply suggestions from code review

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

* Update frame/staking/src/benchmarking.rs

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

* Update frame/staking/src/benchmarking.rs

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

* Some improvements

* Benchmark submit solution without phragmen (PR for First draft of offchain phragmen weights) (#6073)

* implementation of new benchmark

* address comments

* replace test

* Update frame/staking/src/lib.rs

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

* update weight

* Fix refund

* Clean and rady for final bench

* Fix line-wdith

* Fix gitlab build

* Fix line-wdith

* Fix test macro

* Update frame/staking/src/lib.rs

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

* Update frame/staking/src/benchmarking.rs

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

* Better length check

* Update frame/staking/src/lib.rs

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

* Update final weight coefficients

* Update frame/staking/src/lib.rs

* Apply suggestions from code review

* Update frame/staking/src/testing_utils.rs

* Try and fix the line-width

* Revert "Try and fix the line-width"

This reverts commit b4e28472.

* Try and fix the line-width the correct way

* Revert "Try and fix the line-width the correct way"

This reverts commit 04fce128

.

Co-authored-by: default avatarAlexander Popiak <[email protected]>
Co-authored-by: default avatarthiolliere <[email protected]>
Co-authored-by: default avatarGavin Wood <[email protected]>
parent b3e0cb68
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