1. Sep 03, 2020
  2. 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
  3. Sep 01, 2020
  4. Aug 31, 2020
  5. Aug 29, 2020
  6. 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
  7. Aug 27, 2020
  8. Aug 26, 2020
  9. Aug 25, 2020
  10. Aug 24, 2020
  11. Aug 23, 2020
    • Bastian Köcher's avatar
      Make Ss58AddressFormat display less expressive (#6941) · da13dc3c
      Bastian Köcher authored
      Instead of using the `Debug` implementation inside the `Display`
      implementation this pr changes it to display only the name of the format.
      da13dc3c
    • Pierre Krieger's avatar
      Wait for all notifications protocols to be open before reporting opening (#6821) · 6d9928e4
      Pierre Krieger authored
      
      
      * Wait for all notifications protocols to be open before reporting opening
      
      * Update client/network/src/protocol/generic_proto/handler/notif_out.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Concern
      
      * Fix attempt
      
      * Another fix attempt
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarMax Inden <[email protected]>
      6d9928e4
    • Gavin Wood's avatar
      Time-delay proxies (#6770) · cf4c744e
      Gavin Wood authored
      
      
      * Time-delay proxies.
      
      * Tests
      
      * Initial couple of benchmarks
      
      * Fix up runtime
      
      * Last couple of benchmarks
      
      * Tests
      
      * Docs
      
      * Migration
      
      * add tests to proxy benchmarks
      
      * generated benchmarks, not integrated
      
      * Fix weight trait
      
      * integrate weightinfo
      
      * default weight
      
      * Grumble
      
      * Deduplication, split proxy from announced_proxy and don't require reauthentication
      
      * Fix
      
      * Remoe superfluous
      
      * Typos
      
      * Indent
      
      * Fix
      
      * Fixes
      
      * rename 'proxy_announced' -> 'announced_proxy'
      
      * flip rename
      
      * comments and spacing
      
      * fix proxy_announced
      
      * remove unneeded `execute` marker
      
      * Avoid unneeded changes to extrinsic indices
      
      * Cleanup
      
      * Fixes
      
      * Update Benchmarks and Weights for Delayed Proxy (#6811)
      
      * update bechmarks to parameterize announcements
      
      * remove announcement param from proxy
      
      * Update pallet_proxy.rs
      
      * Update weights
      
      * Bump runtime
      
      * Fix benchmark
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      cf4c744e