Skip to content
  1. Mar 30, 2020
  2. 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
  3. Mar 28, 2020
  4. Mar 27, 2020
  5. Mar 26, 2020
  6. Mar 25, 2020
    • Max Inden's avatar
      client/finality-grandpa/src/until_imported: Refactor BlockGlobalMessage (#5390) · e5dbd82c
      Max Inden authored
      
      
      * client/finality-grandpa/src/until_imported: Refactor BlockGlobalMessage
      
      `BlockGlobalMessage` owns an `inner` which contains (1) a count for the
      amount of outstanding blocks to be waited on and (2) the message itself.
      
      Given that both is already wrapped in an `Arc` there is no need to keep
      track of the outstanding blocks, given that it simply corresponds to the
      amount of strong reference counts on the `Arc` itself.
      
      This commit removes the atomic counter within `inner` and piggy backs on
      the `Arc` reference counter instead.
      
      * client/finality-grandpa/src/until_imported: Remove useless match
      
      * client/finality-grandpa/src/until_imported.rs: Remove unused var
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * client/finality-grandpa/src/until_imported: Address comment suggestion
      
      Co-authored-by: default avatarAndré Silva <[email protected]>
      e5dbd82c