1. Mar 29, 2020
    • Bastian Köcher's avatar
      Add method to `sc-cli` to reset the `SIGPIPE` signal handler (#5447) · 44e2e1d9
      Bastian Köcher authored
      The signal handler will be reset to the default system one. This means
      the program will be exited instead of panicking. This is required to
      support piping in the console.
      44e2e1d9
    • Joseph Mark's avatar
      Extend PerThing + Saturating (#5281) · 2206e52d
      Joseph Mark authored
      
      
      * Extend PerThing + Saturating
      
      * Add saturating_pow to Saturating
      * Add saturating_truncating_mul to PerThing (rounding-down mul)
      * Add saturating_reciprocal_mul to PerThing (divide x by perthing)
      * Provide default methods where possible
      
      * Restore const functions
      
      * Fix test
      
      * Update primitives/arithmetic/src/per_things.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Add comment and test verifying no overflow
      
      * Formatting
      
      * Fix possible overflow and change type constraint
      
      * Use overflow pruning for all mul
      
      * Formatting and comments
      
      * Improve comments and names
      
      * Comments in `rational_mul_correction` explain overflow aversion.
      
      * Test rational_mul_correction
      
      * Formatting
      
      * Docs and formatting
      
      * Add new trait methods to Perthing type impl
      
      * Fix signature
      
      * saturating_pow for Delegations
      
      * Add missing trait method to impl
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      2206e52d
    • Nikolay Volf's avatar
      don't use delays in tests (#5404) · 7a96d621
      Nikolay Volf authored
      7a96d621
  2. Mar 28, 2020
  3. Mar 27, 2020
  4. Mar 26, 2020
    • gabriel klawitter's avatar
    • Web3 Philosopher's avatar
      Adds state_queryStorageAt (#5362) · 2ba47dbc
      Web3 Philosopher authored
      
      
      * adds state_queryStorageAt
      
      * make at param for query_storage_at optional
      
      * Update client/rpc/src/state/state_full.rs
      
      Co-Authored-By: default avatarTomasz Drwięga <[email protected]>
      
      * adds query_storage_at to StateBackend
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      2ba47dbc
    • Kian Paimani's avatar
      Offchain Phragmén BREAKING. (#4517) · d1238423
      Kian Paimani authored
      * Initial skeleton for offchain phragmen
      
      * Basic compact encoding decoding for results
      
      * add compact files
      
      * Bring back Self::ensure_storage_upgraded();
      
      * Make staking use compact stuff.
      
      * First seemingly working version of reduce, full of todos
      
      * Everything phragmen related works again.
      
      * Signing made easier, still issues.
      
      * Signing from offchain compile fine 😎
      
      * make compact work with staked asssignment
      
      * Evaluation basics are in place.
      
      * Move reduce into crate. Document stuff
      
      * move reduce into no_std
      
      * Add files
      
      * Remove other std deps. Runtime compiles
      
      * Seemingly it is al stable; cycle implemented but not integrated.
      
      * Add fuzzing code.
      
      * Cleanup reduce a bit more.
      
      * a metric ton of tests for staking; wip 🔨
      
      * Implement a lot more of the tests.
      
      * wip getting the unsigned stuff to work
      
      * A bit gleanup for unsigned debug
      
      * Clean and finalize compact code.
      
      * Document reduce.
      
      * Still problems with signing
      
      * We officaly duct taped the transaction submission stuff. 🤓
      
      * Deadlock with keys again
      
      * Runtime builds
      
      * Unsigned test works 🙌
      
      * Some cleanups
      
      * Make all the tests compile and stuff
      
      * Minor cleanup
      
      * fix more merge stuff
      
      * Most tests work again.
      
      * a very nasty bug in reduce
      
      * Fix all integrations
      
      * Fix more todos
      
      * Revamp everything and everything
      
      * Remove bogus test
      
      * Some review grumbles.
      
      * Some fixes
      
      * Fix doc test
      
      * loop for submission
      
      * Fix cli, keyring etc.
      
      * some cleanup
      
      * Fix staking tests again
      
      * fix per-things; bring patches from benchmarking
      
      * better score prediction
      
      * Add fuzzer, more patches.
      
      * Some fixes
      
      * More docs
      
      * Remove unused generics
      
      * Remove max-nominator footgun
      
      * Better fuzzer
      
      * Disable it 
      
      
      
      * Bump.
      
      * Another round of self-review
      
      * Refactor a lot
      
      * More major fixes in perThing
      
      * Add new fuzz file
      
      * Update lock
      
      * fix fuzzing code.
      
      * Fix nominator retain test
      
      * Add slashing check
      
      * Update frame/staking/src/tests.rs
      
      Co-Authored-By: default avatarJoshy Orndorff <[email protected]>
      
      * Some formatting nits
      
      * Review comments.
      
      * Fix cargo file
      
      * Almost all tests work again
      
      * Update frame/staking/src/tests.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Fix review comments
      
      * More review stuff
      
      * Some nits
      
      * Fix new staking / session / babe relation
      
      * Update primitives/phragmen/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update primitives/phragmen/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update primitives/phragmen/compact/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Some doc updates to slashing
      
      * Fix derive
      
      * Remove imports
      
      * Remove unimplemented tests
      
      * nits
      
      * Remove dbg
      
      * Better fuzzing params
      
      * Remove unused pref map
      
      * Deferred Slashing/Offence for offchain Phragmen  (#5151)
      
      * Some boilerplate
      
      * Add test
      
      * One more test
      
      * Review comments
      
      * Fix build
      
      * review comments
      
      * fix more
      
      * fix build
      
      * Some cleanups and self-reviews
      
      * More minor self reviews
      
      * Final nits
      
      * Some merge fixes.
      
      * opt comment
      
      * Fix build
      
      * Fix build again.
      
      * Update frame/staking/fuzz/fuzz_targets/submit_solution.rs
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      * Update frame/staking/src/slashing.rs
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      * Update frame/staking/src/offchain_election.rs
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      * Fix review comments
      
      * fix test
      
      * === 🔑
      
       Revamp without staking key.
      
      * final round of changes.
      
      * Fix cargo-deny
      
      * Update frame/staking/src/lib.rs
      
      Co-Authored-By: default avatarGavin Wood <[email protected]>
      
      Co-authored-by: default avatarJoshy Orndorff <[email protected]>
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: default avatarGavin Wood <[email protected]>
      d1238423
    • Max Inden's avatar
      client/finality-grandpa/src/until_imported: Refactor schedule_wait (#5386) · 93bfd26d
      Max Inden authored
      
      
      * client/finality-grandpa/src/until_imported: Refactor schedule_wait
      
      Previously `BlockUntilImported::schedule_wait` took two closures, one to
      report ready items and one to report items to await. None of the implementors of
      `BlockUntilImported` call both closures. From a symantic perspective it
      would as well not make sense to both await something and state that it
      is ready.
      
      Instead with this commit `BlockUntilImported::schedule_wait` simply
      returns whether the given item needs waiting or is ready to be passed
      on.
      
      This reduces complexity by:
      
      - Removing side effects through the two closures.
      
      - Reducing borrowing given that `UntilImported` `ready` and `pending`
      don't need to be borrowed from within the two closures.
      
      - Removes the need for trait bounds for the two closures.
      
      * client/finality-grandpa/src/until_imported: Fix comments
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      93bfd26d
    • gabriel klawitter's avatar
    • Pierre Krieger's avatar
      Improve sc-network's documentation for network protocols (#5364) · f121937a
      Pierre Krieger authored
      
      
      * Improve sc-network's documentation for network protocols
      
      * Add note about protocol id
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      f121937a
    • Marcio Diaz's avatar
      Benchmark Democracy Pallet (#5257) · 2b89e83d
      Marcio Diaz authored
      
      
      * Add origin bounds to benchmark macro.
      
      * Add democracy benchmark.
      
      * Fix tests
      
      * Remove collective from frame/benchmarking, partially use EnsureOrigin.
      
      * Remove collective stuff.
      
      * Make previous benches compile again.
      
      * Remove comments.
      
      * Make prev bench to work again.
      
      * Add remove votes.
      
      * Add new proxy calls.
      
      * Add runtime-benchmarks guard to EnsureOrigin and implementations.
      
      * Refactor.
      
      * Add missing import.
      
      * Remove duplicated import
      
      * Fix features.
      
      * Add some missing features.
      
      * Update frame/collective/Cargo.toml
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update frame/democracy/src/benchmarking.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Update frame/democracy/src/benchmarking.rs
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * Add referendums to state.
      
      * populate vecs before call
      
      * Update weight docs
      
      * More fixes and weight docs
      
      * More updates
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      2b89e83d
    • Kian Paimani's avatar
      Mandate weight annotation (#5357) · 9e197396
      Kian Paimani authored
      * Disallow default weight
      
      * Fix build and test
      
      * Fix tests
      
      * Fix another beloved ui test.
      
      * fix beloved trybuild tests
      
      * fix treasury?
      
      * Final test fix
      
      * Fix build
      
      * Fix another one
      
      * Fix
      
      * More doctest fix
      9e197396
    • Alexander Theißen's avatar
      contracts: Remove OnKilledAccount implementation (#5397) · 58439b55
      Alexander Theißen authored
      * contracts: Remove OnKilledAccount implementation
      
      Contracts now longer rely on this callback to tell them when they
      are removed. Instead, they can only self destruct  using `ext_terminate`.
      
      * Fix account removal test
      
      * Fix account storage removal
      58439b55
    • thiolliere's avatar
      Make Staking pallet using a proper Time module. (#4662) · 43c716b2
      thiolliere authored
      
      
      * add new trait, still migration to make
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarKian Paimani <[email protected]>
      
      * implement migration
      
      * better naming
      
      * fix test
      
      * no longer require DeprecatedTime
      
      * add test
      
      * fix version
      
      * upgrade only from kusama
      
      * add test
      
      * fix test
      
      * Update frame/timestamp/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      43c716b2
    • Kian Paimani's avatar
      Update CODEOWNERS (#5409) · 383340d6
      Kian Paimani authored
      383340d6
    • Spencer Judge's avatar
      Make AccountId32 hashable (#5405) · 4e196982
      Spencer Judge authored
      
      
      * Make AccountId32 hashable
      
      * Only implement Hash in std
      
      Co-Authored-By: default avatarNikolay Volf <[email protected]>
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      4e196982
    • Arkadiy Paronyan's avatar
      Allow syncing to peers with finalized common block (#5408) · 3f5b56dc
      Arkadiy Paronyan authored
      * Allow syncing to peers with finalized common block
      
      * Added test
      3f5b56dc
    • pscott's avatar
      TelemetryEndpoints must be valid MutliAddr URL (#5069) · fe23d880
      pscott authored
      
      
      * Check for url validity when creating TelemetryEndpoints
      
      * Update code that used TelemetryEndpoints::new()
      
      * Update commennts that referred to TelemetryEndpoints::new()
      
      * Add tests for telemetry
      
      * Fix typo and fix code in docs
      
      * Return error on failing to override telemetry
      
      * Use expect instead of suppressing errors on must-be-valid telemetry endpoints
      
      * Update telemetry unit tests to use expect instead of unwrap
      
      * Implement custom deserializer for TelemetryEndpoints
      
      * Fix typo
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      fe23d880
  5. Mar 25, 2020
  6. Mar 24, 2020