Decouple Staking and Election - Part 2.1: Unleash Multi Phase (#8113)
* 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 * It all works * Some self cleanup * Update frame/staking/src/lib.rs Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * remove most todos. * Round of self-review. * Fix migration * clean macro * Revert wrong merge * remove fuzzer stuff. * Self review * Update frame/staking/src/lib.rs Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> * review comments * add logs * Add tests to demonstrate the capacity of the snapshot. * Replace upgrade * Last touches * Fix benchmakrs * 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 * 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 * remove unused stuff * Fix tests. 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> Co-authored-by:
Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
Showing
- substrate/Cargo.lock 1 addition, 23 deletionssubstrate/Cargo.lock
- substrate/Cargo.toml 0 additions, 1 deletionsubstrate/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 3 additions, 19 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/babe/src/mock.rs 0 additions, 6 deletionssubstrate/frame/babe/src/mock.rs
- substrate/frame/election-provider-multi-phase/src/unsigned.rs 1 addition, 2 deletions...trate/frame/election-provider-multi-phase/src/unsigned.rs
- substrate/frame/election-provider-multi-phase/src/weights.rs 41 additions, 45 deletionssubstrate/frame/election-provider-multi-phase/src/weights.rs
- substrate/frame/election-provider-support/src/lib.rs 3 additions, 1 deletionsubstrate/frame/election-provider-support/src/lib.rs
- substrate/frame/grandpa/src/mock.rs 1 addition, 7 deletionssubstrate/frame/grandpa/src/mock.rs
- substrate/frame/offences/benchmarking/src/lib.rs 1 addition, 3 deletionssubstrate/frame/offences/benchmarking/src/lib.rs
- substrate/frame/offences/benchmarking/src/mock.rs 1 addition, 7 deletionssubstrate/frame/offences/benchmarking/src/mock.rs
- substrate/frame/session/benchmarking/src/mock.rs 1 addition, 7 deletionssubstrate/frame/session/benchmarking/src/mock.rs
- substrate/frame/staking/Cargo.toml 2 additions, 2 deletionssubstrate/frame/staking/Cargo.toml
- substrate/frame/staking/fuzzer/.gitignore 0 additions, 2 deletionssubstrate/frame/staking/fuzzer/.gitignore
- substrate/frame/staking/fuzzer/Cargo.lock 0 additions, 2294 deletionssubstrate/frame/staking/fuzzer/Cargo.lock
- substrate/frame/staking/fuzzer/Cargo.toml 0 additions, 41 deletionssubstrate/frame/staking/fuzzer/Cargo.toml
- substrate/frame/staking/fuzzer/src/submit_solution.rs 0 additions, 183 deletionssubstrate/frame/staking/fuzzer/src/submit_solution.rs
- substrate/frame/staking/src/benchmarking.rs 2 additions, 237 deletionssubstrate/frame/staking/src/benchmarking.rs
- substrate/frame/staking/src/lib.rs 156 additions, 1098 deletionssubstrate/frame/staking/src/lib.rs
- substrate/frame/staking/src/mock.rs 2 additions, 219 deletionssubstrate/frame/staking/src/mock.rs
- substrate/frame/staking/src/offchain_election.rs 0 additions, 598 deletionssubstrate/frame/staking/src/offchain_election.rs
Please register or sign in to comment