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:Alexander Popiak <alexander.popiak@parity.io> * Update frame/staking/src/benchmarking.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Apply suggestions from code review Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> Co-authored-by:
thiolliere <gui.thiolliere@gmail.com> * Update frame/staking/src/benchmarking.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Update frame/staking/src/benchmarking.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * 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:
Alexander Popiak <alexander.popiak@parity.io> * 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:
Alexander Popiak <alexander.popiak@parity.io> * Update frame/staking/src/benchmarking.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * Better length check * Update frame/staking/src/lib.rs Co-authored-by:
Alexander Popiak <alexander.popiak@parity.io> * 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:
Alexander Popiak <alexander.popiak@parity.io> Co-authored-by:
thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Gavin Wood <gavin@parity.io>
Showing
- substrate/.gitlab-ci.yml 1 addition, 1 deletionsubstrate/.gitlab-ci.yml
- substrate/Cargo.lock 413 additions, 385 deletionssubstrate/Cargo.lock
- substrate/frame/staking/Cargo.toml 4 additions, 16 deletionssubstrate/frame/staking/Cargo.toml
- substrate/frame/staking/fuzzer/Cargo.toml 1 addition, 1 deletionsubstrate/frame/staking/fuzzer/Cargo.toml
- substrate/frame/staking/fuzzer/src/submit_solution.rs 40 additions, 27 deletionssubstrate/frame/staking/fuzzer/src/submit_solution.rs
- substrate/frame/staking/src/benchmarking.rs 233 additions, 100 deletionssubstrate/frame/staking/src/benchmarking.rs
- substrate/frame/staking/src/lib.rs 168 additions, 67 deletionssubstrate/frame/staking/src/lib.rs
- substrate/frame/staking/src/offchain_election.rs 17 additions, 3 deletionssubstrate/frame/staking/src/offchain_election.rs
- substrate/frame/staking/src/testing_utils.rs 183 additions, 201 deletionssubstrate/frame/staking/src/testing_utils.rs
- substrate/frame/staking/src/tests.rs 80 additions, 53 deletionssubstrate/frame/staking/src/tests.rs
- substrate/frame/support/src/lib.rs 1 addition, 0 deletionssubstrate/frame/support/src/lib.rs
- substrate/primitives/phragmen/compact/src/lib.rs 39 additions, 0 deletionssubstrate/primitives/phragmen/compact/src/lib.rs
- substrate/primitives/phragmen/src/tests.rs 14 additions, 0 deletionssubstrate/primitives/phragmen/src/tests.rs
- substrate/utils/frame/benchmarking-cli/src/command.rs 8 additions, 1 deletionsubstrate/utils/frame/benchmarking-cli/src/command.rs
Please register or sign in to comment