1. Oct 19, 2020
  2. Oct 08, 2020
  3. Oct 02, 2020
  4. Sep 23, 2020
    • Kian Paimani's avatar
      PhragMMS election. (#6685) · 313f86ec
      Kian Paimani authored
      
      
      * Revamp npos-elections and implement phragmms
      
      * Update primitives/npos-elections/src/phragmms.rs
      
      * Fix build
      
      * Some review grumbles
      
      * Add some stuff for remote testing
      
      * fix some of the grumbles.
      
      * Add remote testing stuff.
      
      * Cleanup
      
      * fix docs
      
      * Update primitives/arithmetic/src/rational.rs
      
      Co-authored-by: default avatarDan Forbes <[email protected]>
      
      * Small config change
      
      * Better handling of approval_stake == 0
      
      * Final touhces.
      
      * Clean fuzzer a bit
      
      * Clean fuzzer a bit
      
      * Update primitives/npos-elections/src/balancing.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Fix fuzzer.
      
      * Better api for normalize
      
      * Add noramlize_up
      
      * A large number of small fixes.
      
      * make it merge ready
      
      * Fix warns
      
      * bump
      
      * Fix fuzzers a bit.
      
      * Fix warns as well.
      
      * Fix more tests.
      
      Co-authored-by: default avatarDan Forbes <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      313f86ec
  5. Sep 16, 2020
    • Kian Paimani's avatar
      Move Staking Weights to T::WeightInfo (#7007) · 83bde4c1
      Kian Paimani authored
      
      
      * Fix the benchmarks
      
      * Migrate staking to weightInfo
      
      * Fix global benchmarks
      
      * re-calculate the submit solution weight.
      
      * Fix some refund.
      
      * Get rid of all the extra parameters.
      
      * Fix staking tests.
      
      * new values from the bench machine.
      
      * Fix some grumbles
      
      * better macro
      
      * Some better doc
      
      * Move to interpreted wasm
      
      * Make it work temporarily
      
      * Final fix of default ones.
      
      * Fix payout benchmarks
      
      * Fix payout stuff
      
      * One last fix
      
      * use benchmarking machine for numbers
      
      * update weight docs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      83bde4c1
  6. Sep 11, 2020
  7. Sep 09, 2020
    • Kian Paimani's avatar
      Make SlashingSpans Public (#6961) · c07bde8b
      Kian Paimani authored
      * Make SlashingSpans Public
      
      Offchain Applications will often need to inspect this type because it is directly used in staking election, thus worthy of being `pub`. Rest of the slashing api can remain private, only this and the `fn last_non_zero_slash()` of `SlashingSpans` are of interest.
      
      * Update frame/staking/src/lib.rs
      c07bde8b
  8. Aug 26, 2020
  9. Aug 13, 2020
  10. Aug 11, 2020
  11. Aug 10, 2020
  12. Aug 03, 2020
  13. Jul 29, 2020
  14. Jul 21, 2020
  15. Jul 20, 2020
  16. Jul 16, 2020
  17. Jul 08, 2020
    • Shawn Tabrizi's avatar
      Add `WeightInfo` to all pallets with benchmarks. (#6575) · 2302898b
      Shawn Tabrizi authored
      * Start adding weight info
      
      * More weightinfo
      
      * finish weight info
      
      * more fixes
      
      * inital update of node runtime
      
      * fix the rest of the compilation
      
      * update balances
      
      * add docs
      
      * fix balances tests
      
      * Fix more tests
      
      * Fix compile
      
      * Fix pallet-evm tests
      2302898b
  18. Jul 07, 2020
  19. Jul 06, 2020
  20. Jul 04, 2020
    • André Silva's avatar
      babe: report equivocations (#6362) · a9c21b8b
      André Silva authored
      * slots: create primitives crate for consensus slots
      
      * offences: add method to check if an offence is unknown
      
      * babe: initial equivocation reporting implementation
      
      * babe: organize imports
      
      * babe: working equivocation reporting
      
      * babe: add slot number to equivocation proof
      
      * session: move duplicate traits to session primitives
      
      * babe: move equivocation stuff to its own file
      
      * offences: fix test
      
      * session: don't have primitives depend on frame_support
      
      * babe: use opaque type for key owner proof
      
      * babe: cleanup client equivocation reporting
      
      * babe: cleanup equivocation code in pallet
      
      * babe: allow sending signed equivocation reports
      
      * node: fix compilation
      
      * fix test compilation
      
      * babe: return bool on check_equivocation_proof
      
      * babe: add test for equivocation reporting
      
      * babe: add more tests
      
      * babe: add test for validate unsigned
      
      * babe: take slot number in generate_key_ownership_proof API
      
      * babe: add benchmark for equivocation proof checking
      
      * session: add benchmark for membership proof checking
      
      * offences: fix babe benchmark
      
      * babe: add weights based on benchmark results
      
      * babe: adjust weights after benchmarking on reference hardware
      
      * babe: reorder checks in check_and_report_equivocation
      a9c21b8b
  21. Jun 25, 2020
  22. Jun 23, 2020
  23. Jun 22, 2020
  24. Jun 19, 2020
  25. Jun 10, 2020
    • Shaopeng Wang's avatar
      "OR gate" for EnsureOrigin (#6237) · ccdac645
      Shaopeng Wang authored
      * 'OR gate' for EnsureOrigin.
      
      * Formatting.
      
      * More formatting.
      
      * Add docstring; Update 'Success' type.
      
      * Bump runtime impl_version.
      
      * Fix successful_origin.
      
      * Add either into std feature list.
      
      * Update docs.
      ccdac645
  26. Jun 05, 2020
  27. Jun 02, 2020
  28. Jun 01, 2020
  29. May 28, 2020
  30. May 25, 2020
  31. May 23, 2020
  32. May 21, 2020
  33. May 15, 2020
  34. May 12, 2020
    • Bastian Köcher's avatar
      Optimize `decode_len` (#5975) · 22db788c
      Bastian Köcher authored
      
      
      * Optimize `decode_len`
      
      Instead of reading the full storage value into the runtime, we only read
      at maximum `5bytes` from the storage into the runtime. Furthermore this
      drops any handling with regards to set default values in
      `decl_storage!`. If the value does not exists or the decoding of the
      length fails, it will return `None`. To prevent people from messing
      stuff up, this feature relies on the `StorageDecodeLength` trait that is
      sealed by `frame-support` (aka only implementable inside this crate).
      
      * Some clean ups
      
      * Update frame/support/src/storage/mod.rs
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      22db788c