Skip to content
  1. Aug 02, 2019
    • Max Inden's avatar
      network/service: Let `get_value` return a future returning a DhtEvent · 728fcad0
      Max Inden authored
      So far to retrieve a value from the DHT, one would need to:
      
      1. Trigger a DHT event query via `NetworkWorker.get_value`.
      
      2. Somehow retrieve the event from `NetworkWorker.poll`, e.g. by having
      it return the responses as a stream.
      
      Instead of the above, this commit suggests having
      `NetworkService.get_value` return a future, eventually resolving to the
      DHT response. Internally this is coordinated via
      `futures::sync::oneshot`, maintaining a list of subscribers for a given
      DHT key, notifying each one when a new event comes in.
      728fcad0
  2. Aug 01, 2019
  3. Jul 31, 2019
  4. Jul 30, 2019
  5. Jul 29, 2019
  6. Jul 28, 2019
    • Pierre Krieger's avatar
      Clean up the basic-authorship crate (#3206) · a08d7ce1
      Pierre Krieger authored
      * Switch consensus-common to new futures
      
      * Fix tests
      
      * More tests fixing
      
      * Make Proposer, OnSlot and SyncOracle mut
      
      * Make the Environment mut as well
      
      * Fix test
      
      * Fix Babe tests
      
      * Babe fixes
      
      * Fix CLI service tests
      
      * Fix Babe tests
      
      * Remove unnecessary trait bound
      
      * Inline the code of BlockBuilder and AuthoringApi
      
      * Remove warning lint
      
      * Bounds simplification
      
      * Imports simplification
      
      * Don't panic on bad generated block
      
      * Code style
      
      * Add doc example
      
      * Remove dependency on aura
      
      * Order dependencies alphabetically
      
      * Minor style
      a08d7ce1
  7. Jul 27, 2019
  8. Jul 26, 2019