Skip to content
  1. Aug 16, 2020
  2. Aug 15, 2020
  3. Aug 14, 2020
  4. Aug 13, 2020
  5. Aug 12, 2020
    • Bastian Köcher's avatar
      Make `HexDisplay` useable in `no_std` (#6883) · ed4f7a11
      Bastian Köcher authored
      Actually I use this quite often when debugging some WASM bugs and there
      is no harm in enabling it by default. Before I just always copied it
      everytime I needed it.
      ed4f7a11
    • Max Inden's avatar
      client/authority-discovery: Introduce AuthorityDiscoveryService (#6760) · 473a23f4
      Max Inden authored
      * client/authority-discovery: Rename AuthorityDiscovery to XXXWorker
      
      * client/authority-discovery: Introduce AuthorityDiscoveryService
      
      Add a basic `AuthorityDiscoveryService` implementation which enables
      callers to get the addresses for a given `AuthorityId` from the local
      cache.
      
      * client/authority-discovery: Split into worker and service mod
      
      Move `Service` and `Worker` to their own Rust modules resulting in the
      following file structure.
      
      ├── build.rs
      ├── Cargo.toml
      └── src
          ├── error.rs
          ├── lib.rs
          ├── service.rs
          ├── tests.rs
          ├── worker
          │   ├── addr_cache.rs
          │   ├── schema
          │   │   └── dht.proto
          │   └── tests.rs
          └── worker.rs
      
      * client/authority-discovery: Cache PeerId -> AuthorityId mapping
      
      * client/authority-discovery: Update priority group on interval
      
      Instead of updating the authority discovery peerset priority group each
      time a new DHT value is found, update it regularly on an interval.
      
      This removes the need for deterministic random selection. Instead of
      trying to return a random stable set of `Multiaddr`s, the `AddrCache`
      now returns a random set on each call.
      
      * client/authority-discovery: Implement Service::get_authority_id
      
      * client/authority-discovery: Use HashMap instead of BTreeMap
      
      * client/authority-discovery: Rework priority group interval
      
      * client/authority-discovery: Fix comment
      
      * bin/node/cli: Update authority discovery constructor
      
      * client/authority-discovery: Fuse from_service receiver
      
      * client/authority-discovery: Remove Rng import
      
      * client/authority-discovery: Ignore Multiaddr without PeerId
      
      * client/authority-discovery/service: Add note on returned None
      
      * client/authority-discovery/addr_cache: Replace double clone with deref
      473a23f4
    • Cecile Tonglet's avatar
      Add async test helper to timeout and provide a task_executor automatically (#6651) · c495f89c
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * Add async test helper to timeout and provide a task_executor automatically
      
      * simplify error message to avoid difference between CI and locally
      
      * forgot env var
      
      * Use runtime env var instead of build env var
      
      * Rename variable to SUBSTRATE_TEST_TIMEOUT
      
      * CLEANUP
      
      Forked at: 60e3a693
      
      
      Parent branch: origin/master
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Re-export from test-utils
      
      * Default value to 120
      
      * fix wrong crate in ci
      
      * Revert "Default value to 120"
      
      This reverts commit 8e458717.
      
      * Fix version
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * remove feature flag
      
      * fix missing dependency
      
      * CLEANUP
      
      Forked at: 60e3a693
      
      
      Parent branch: origin/master
      
      * fix test
      
      * Removed autotests=false
      
      * Some doc...
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      
      
      Parent branch: origin/master
      
      * Update test-utils/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c495f89c