Roman Useinov
1b24f562e6
[Feature] Part 1: add TargetList for validator ranking ( #12034 )
...
* [Feature] Part 1: add TargetList for validator ranking
* remove redundant todo
* remove typo
* cleanup
* implement score
* more fixes
* fix thresholds
* fmt
* Remove the stuff that has to come in the next PR, some fixes
* extended balance import
* Change all the references from VoteWeight to Self::Score
* Add a migration for VoterBagsList
* fix score
* add targetList to nomination-pools tests
* fix bench
* address review comments
* change get_npos_targets
* address more comments
* remove thresholds for the time being
* fix instance reference
* VoterBagsListInstance
* reus
* remove params that are not used yet
* Introduced pre/post upgrade try-runtime checks
* fix
* fixes
* fix migration
* fix migration
* fix post_upgrade
* change
* Fix
* eloquent PhantomData
* fix PD
* more fixes
* Update frame/staking/src/pallet/impls.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* is_nominator now works
* fix test-staking
* build fixes
* fix remote-tests
* Apply suggestions from code review
Co-authored-by: parity-processbot <>
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-09-18 11:28:16 +02:00
Kian Paimani
f67c06ce22
Runtime State Test + Integration with try-runtime ( #10174 )
...
* add missing version to dependencies
* Huh
* add features more
* more fixing
* last touches
* it all finally works
* remove some feature gates
* remove unused
* fix old macro
* make it work again
* fmt
* remove unused import
* ".git/.scripts/fmt.sh" 1
* Cleanup more
* fix and rename everything
* a few clippy fixes
* Add try-runtime feature
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* small fixes
* fmt
* Update bin/node-template/runtime/src/lib.rs
* fix build
* Update utils/frame/try-runtime/cli/src/lib.rs
Co-authored-by: David <dvdplm@gmail.com >
* Update utils/frame/try-runtime/cli/src/commands/execute_block.rs
Co-authored-by: David <dvdplm@gmail.com >
* address all review comments
* fix typos
* revert spec change
* last touches
* update docs
* fmt
* remove some debug_assertions
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: David <dvdplm@gmail.com >
2022-09-01 10:33:22 +00:00
Falco Hirschenberger
b581604aa7
Apply some clippy lints ( #11154 )
...
* Apply some clippy hints
* Revert clippy ci changes
* Update client/cli/src/commands/generate.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/cli/src/commands/inspect_key.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/db/src/bench.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/db/src/bench.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/client/block_rules.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/service/src/client/block_rules.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/network/src/transactions.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/network/src/protocol.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Revert due to missing `or_default` function.
* Fix compilation and simplify code
* Undo change that corrupts benchmark.
* fix clippy
* Update client/service/test/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/state-db/src/noncanonical.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/state-db/src/noncanonical.rs
remove leftovers!
* Update client/tracing/src/logging/directives.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update utils/fork-tree/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* added needed ref
* Update frame/referenda/src/benchmarking.rs
* Simplify byte-vec creation
* let's just not overlap the ranges
* Correction
* cargo fmt
* Update utils/frame/benchmarking-cli/src/shared/stats.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update utils/frame/benchmarking-cli/src/pallet/command.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update utils/frame/benchmarking-cli/src/pallet/command.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Giles Cope <gilescope@gmail.com >
2022-04-30 21:28:27 +00:00
Kian Paimani
661d0ea5bb
Store validator self-vote in bags-list, and allow them to be trimmed for election ( #10821 )
...
* Implement the new validator-in-bags-list scenario + migration
* Apply suggestions from code review
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* some review comments
* guard the migration
* some review comments
* Fix tests 🤦♂️
* Fix build
* fix weight_of_fn
* reformat line width
* make const
* use weight of fn cached
* SortedListProvider -> VoterList
* Fix all build and docs
* check post migration
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-03-23 14:17:26 +00:00
Zeke Mostov
f8e0e41e15
Make bags-list generic over node value and instantiable ( #10997 )
...
* make instantiable
* update
* cargo fmt
* Clean up
* bags-list: Make it generic over node value
* Respond to some feedback
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add back default impl for weight update worst case
* Update to Score in more places'
* Use VoteWeight, not u64 to reduce test diff
* FMT
* FullCodec implies Codec
* formatting
* Fixup bags list remote test
Co-authored-by: doordashcon <jesse.chejieh@gmail.com >
Co-authored-by: Doordashcon <90750465+Doordashcon@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-09 16:28:28 +00:00
Bastian Köcher
f3662b4bba
Happy new year 2022 ( #10573 )
2022-01-03 09:22:14 +01:00
Kian Paimani
937b6f246e
put TryInto and TryFrom in sp_std::prelude ( #10183 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
* half baked
* fix
* remove unused import
* remove more warnings
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-11-08 00:24:53 +01:00
Kian Paimani
bba9cfd8a2
introduce remote-tests for pallet-bags-list ( #10036 )
...
* make a few primitives in bags-list public
* push new stuff
* update
* update log target
* bring remote tests here
* revert pub
* Update frame/bags-list/remote-tests/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* some rev commnets
* Fix
* cleanup
* Update Cargo.lock
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-01 14:41:38 +00:00