Skip to content
Commit 0133185c 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 b4e284727220085b9b3daf7682c4bbf29621da09.

* Try and fix the line-width the correct way

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

This reverts commit 04fce128e851c9584f9f0d708a5a73cae799d8c8.

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