Decouple Staking and Election - Part 2 Unsigned Phase (#7909)
* Base features and traits. * pallet and unsigned phase * Undo bad formattings. * some formatting cleanup. * Small self-cleanup. * Make it all build * self-review * Some doc tests. * Some changes from other PR * Fix session test * Update Cargo.lock * Update frame/election-provider-multi-phase/src/lib.rs Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> * Some review comments * Rename + make encode/decode * Do an assert as well, just in case. * Fix build * Update frame/election-provider-multi-phase/src/unsigned.rs Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> * Las comment * fix staking fuzzer. * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Add one last layer of feasibility check as well. * Last fixes to benchmarks * Some more docs. * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Some nits * cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Fix doc * Mkae ci green Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Parity Benchmarking Bot <admin@parity.io>
Showing
- substrate/Cargo.lock 33 additions, 0 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 1 addition, 0 deletionssubstrate/Cargo.toml
- substrate/bin/node/runtime/Cargo.toml 3 additions, 0 deletionssubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/constants.rs 1 addition, 1 deletionsubstrate/bin/node/runtime/src/constants.rs
- substrate/bin/node/runtime/src/lib.rs 49 additions, 8 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/babe/Cargo.toml 1 addition, 1 deletionsubstrate/frame/babe/Cargo.toml
- substrate/frame/babe/src/lib.rs 9 additions, 3 deletionssubstrate/frame/babe/src/lib.rs
- substrate/frame/babe/src/mock.rs 9 additions, 0 deletionssubstrate/frame/babe/src/mock.rs
- substrate/frame/election-provider-multi-phase/Cargo.toml 66 additions, 0 deletionssubstrate/frame/election-provider-multi-phase/Cargo.toml
- substrate/frame/election-provider-multi-phase/src/benchmarking.rs 282 additions, 0 deletions...e/frame/election-provider-multi-phase/src/benchmarking.rs
- substrate/frame/election-provider-multi-phase/src/helpers.rs 159 additions, 0 deletionssubstrate/frame/election-provider-multi-phase/src/helpers.rs
- substrate/frame/election-provider-multi-phase/src/lib.rs 1456 additions, 0 deletionssubstrate/frame/election-provider-multi-phase/src/lib.rs
- substrate/frame/election-provider-multi-phase/src/mock.rs 381 additions, 0 deletionssubstrate/frame/election-provider-multi-phase/src/mock.rs
- substrate/frame/election-provider-multi-phase/src/unsigned.rs 873 additions, 0 deletions...trate/frame/election-provider-multi-phase/src/unsigned.rs
- substrate/frame/election-provider-multi-phase/src/weights.rs 150 additions, 0 deletionssubstrate/frame/election-provider-multi-phase/src/weights.rs
- substrate/frame/grandpa/Cargo.toml 1 addition, 0 deletionssubstrate/frame/grandpa/Cargo.toml
- substrate/frame/grandpa/src/mock.rs 9 additions, 1 deletionsubstrate/frame/grandpa/src/mock.rs
- substrate/frame/offences/benchmarking/Cargo.toml 2 additions, 0 deletionssubstrate/frame/offences/benchmarking/Cargo.toml
- substrate/frame/offences/benchmarking/src/mock.rs 9 additions, 0 deletionssubstrate/frame/offences/benchmarking/src/mock.rs
- substrate/frame/session/benchmarking/Cargo.toml 3 additions, 1 deletionsubstrate/frame/session/benchmarking/Cargo.toml
Please register or sign in to comment