1. Feb 21, 2023
    • Vivek Pandya's avatar
      Remove years from copyright notes. (#13415) · bc53b9a0
      Vivek Pandya authored
      * Change copyright year to 2023 from 2022
      
      * Fix incorrect update of copyright year
      
      * Remove years from copy right header
      
      * Fix remaining files
      
      * Fix typo in a header and remove update-copyright.sh
      bc53b9a0
  2. Jan 27, 2023
  3. Jan 07, 2023
  4. Dec 26, 2022
  5. Dec 12, 2022
  6. Nov 13, 2022
  7. Nov 09, 2022
    • Ankan's avatar
      Bound Election and Staking by MaxActiveValidators (#12436) · 657d9920
      Ankan authored
      
      
      * bounding election provider with kian
      
      * multi phase implement bounded election provider
      
      * election provider blanket implementation
      
      * staking compiles
      
      * fix test for election provider support
      
      * fmt
      
      * fixing epmp tests, does not compile yet
      
      * fix epmp tests
      
      * fix staking tests
      
      * fmt
      
      * fix runtime tests
      
      * fmt
      
      * remove outdated wip tags
      
      * add enum error
      
      * sort and truncate supports
      
      * comment
      
      * error when unsupported number of election winners
      
      * compiling wip after kian's suggestions
      
      * fix TODOs
      
      * remove,fix tags
      
      * ensure validator count does not exceed maxwinners
      
      * clean up
      
      * some more clean up and todos
      
      * handle too many winners
      
      * rename parameter for mock
      
      * todo
      
      * add sort and truncate rule if there are too many winners
      
      * fmt
      
      * fail, not swallow emergency result bound not met
      
      * remove too many winners resolution as it can be guaranteed to be bounded
      
      * fix benchmark
      
      * give MaxWinners more contextual name
      
      * make ready solution generic over T
      
      * kian feedback
      
      * fix stuff
      
      * Kian's way of solvign this
      
      * comment fix
      
      * fix compile
      
      * remove use of BoundedExecution
      
      * fmt
      
      * comment out failing integrity test
      
      * cap validator count increment to max winners
      
      * dont panic
      
      * add test for bad data provider
      
      * Update frame/staking/src/pallet/impls.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * fix namespace conflict and add test for onchain max winners less than desired targets
      
      * defensive unwrap
      
      * early convert to bounded vec
      
      * fix syntax
      
      * fmt
      
      * fix doc
      
      * fix rustdoc
      
      * fmt
      
      * fix maxwinner count for benchmarking
      
      * add instant election for noelection
      
      * fmt
      
      * fix compile
      
      * pr feedbacks
      
      * always error at validator count exceeding max winners
      
      * add useful error message
      
      * pr comments
      
      * import fix
      
      * add checked_desired_targets
      
      * fmt
      
      * fmt
      
      * fix rust doc
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarkianenigma <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      657d9920
  8. Sep 28, 2022
    • Sergej Sakac's avatar
      New Pallet: Root offences (#11943) · ea434668
      Sergej Sakac authored
      
      
      * root-offences pallet
      
      * fix errors
      
      * cleaned up a bit
      
      * remove unwrap()
      
      * new pallet is getting compiled
      
      * remove unnecessary type annotations
      
      * remove more unnecessary type annotations
      
      * addidtional cleaning
      
      * commit
      
      * cleaned up
      
      * fix in logic
      
      * add event
      
      * removed Clone trait from AccountId
      
      * test module
      
      * remove unused imports
      
      * fmt
      
      * fix
      
      * separate into functions, still messy
      
      * test
      
      * first test
      
      * fmt
      
      * cleaned up a bit
      
      * separate into mock.rs and tests.rs
      
      * basic docs for now
      
      * pallet_staking GenesisiConfig
      
      * fix
      
      * added start_session
      
      * passing tests
      
      * impl GenesisConfig for pallet_session
      
      * updated event
      
      * Update frame/root-offences/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/root-offences/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * remove <T: Config
      
      * specifying trait bounds inside Config
      
      * commit
      
      * active era increases correctly :)
      
      * ExtBuilder
      
      * slashing works
      
      * new test
      
      * additional test
      
      * commit
      
      * order
      
      * fix?
      
      * fix in logic
      
      * remove unnecessary
      
      * wrap comment at 100
      
      * fmt
      
      * merge fixes
      
      * Update frame/root-offences/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Update frame/root-offences/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * docs
      
      * Update frame/root-offences/README.md
      
      Co-authored-by: default avatarAndronik <[email protected]>
      
      * Update frame/root-offences/Cargo.toml
      
      Co-authored-by: default avatarAndronik <[email protected]>
      
      * license header
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarAndronik <[email protected]>
      ea434668