Skip to content
  1. Sep 09, 2020
  2. Sep 08, 2020
  3. Sep 07, 2020
  4. Sep 06, 2020
    • Roman Borschel's avatar
      Refactor & detach network metrics. (#6986) · ec478772
      Roman Borschel authored
      * Refactor sc-network/service metrics.
      
        1. Aggregate sc-network metrics into a submodule, introducing
        two more sourced metrics to avoid duplicate atomics.
      
        2. Decouple periodic sc-service network metrics from other
        metrics, so that they can be updated independently.
      
      * Update client/service/src/metrics.rs
      
      * Update client/service/src/metrics.rs
      ec478772
  5. Sep 04, 2020
  6. Sep 03, 2020
  7. Sep 02, 2020
    • Pierre Krieger's avatar
      Stop sending messages on legacy substream altogether (#6975) · 34980ec8
      Pierre Krieger authored
      
      
      * Stop sending messages on legacy substream altogether
      
      * Ensure that handshake is sent back even in case of back-pressure
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Also process OpenRequest and Closed
      
      * Also process OpenRequest and Closed
      
      * Fix bad merge
      
      * God I'm so lost with all these merges
      
      * Immediately return Closed
      
      * Add warning for sending on non-registered protocol
      
      * Register GrandPa protocol in tests
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      34980ec8
    • Max Inden's avatar
      frame/authority-discovery: Have authorities() return both current and next (#6788) · 1d10db31
      Max Inden authored
      * frame/authority-discovery: Have authorities() return both current and next
      
      Authority address lookups on the DHT happen periodically (every 10
      mintues) and are rather slow (~10 seconds).
      
      In order to smooth the transition period between two sessions, have the
      runtime module return both the current as well as the next authority
      set. Thereby the client authority module will:
      
      1. Publish its addresses one session in advance.
      
      2. Prefetch the addresses of authorities of the next session in advance.
      
      * frame/authority-discovery: Deduplicate authority ids
      
      * frame/authority-discovery: Don't dedup on_genesis authorities
      
      * frame/authority-discovery: Remove mut and sort on comparison in tests
      
      * frame/authority-discovery: Use BTreeSet for deduplication
      1d10db31
    • Pierre Krieger's avatar
      Ensure that handshake is sent back even in case of back-pressure (#6979) · 2f9e2577
      Pierre Krieger authored
      
      
      * Ensure that handshake is sent back even in case of back-pressure
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Also process OpenRequest and Closed
      
      * Fix bad merge
      
      * God I'm so lost with all these merges
      
      * Immediately return Closed
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      2f9e2577
  8. Sep 01, 2020
  9. Aug 31, 2020
  10. Aug 29, 2020
  11. Aug 28, 2020
    • Max Inden's avatar
      client/*: Treat protocol name as str and not [u8] (#6967) · 8fd343e3
      Max Inden authored
      * client/*: Treat protocol name as str and not [u8]
      
      Notification protocol names are in practice always valid utf8 strings.
      Instead of treating them as such in the type system, thus far they were
      casted to a [u8] at creation time.
      
      With this commit protocol names are instead treated as valid utf8
      strings throughout the codebase and passed as `Cow<'static, str>`
      instead of `Cow<'static, [u8]>`. Among other things this eliminates the
      need for string casting when logging.
      
      * client/network: Don't allocate when protocol name is borrowed
      8fd343e3
    • Alexander Popiak's avatar
      add generated weight info for pallet-collective (#6789) · ff1e8150
      Alexander Popiak authored
      
      
      * add benchmark for disapprove_proposal
      
      * use generated WeightInfo for pallet-collective weights
      
      * order collective benchmark params alphabetically to get a consistent ordering
      
      * address review comments
      
      * remove default impl of WeightInfo for ()
      
      * remove comments about weight changes
      
      * add default weights
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      
      * whitelist voter account in benchmark
      
      * update weights
      
      * MaxMembers configurable
      
      * remove base weight comment
      
      * add weight to technical collective
      
      * another DB whitelist optimization
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      ff1e8150