1. Jan 03, 2020
    • Max Inden's avatar
      client/authority-discovery: Limit number of connections to authorities (#4487) · bdf6043f
      Max Inden authored
      * client/authority-discovery: Limit number of connections to authorities
      
      Instead of connecting to all sentry nodes of all authorities, with this
      patch the authority discovery module does the following:
      
      - Choose one sentry node per authority at random.
      
      - Choose MAX_NUM_AUTHORITY_CONN out of the above at random.
      
      The module uses randomness to prevent hot spots, e.g. all nodes trying
      to connect to a single node. If the authority discovery module would
      choose the nodes to connect to at random on each new address that it
      learns of, the node would go through a lot of connection churn.  Instead
      it creates a random seed at start up and uses this seed for its RNG on
      each update cycle.
      
      * client/authority-discovery: Extract address cache into own module
      
      * client/authority-discovery/src/addr_cache: Add basic unit tests
      
      * client/authority-discovery: Replace unwrap with expect on [u8] cmp
      
      * .maintain/sentry-node/docker-compose.yml: Prefix endpoint flags
      
      * client/authority-discovery/src/addr_cache: Use sort_unstable and cmp
      
      * client/authority-discovery: Use BTreeMap in addr_cache for sorted iter
      
      To reduce connection churn it is preferrable to have `get_subset` of the
      `addr_cache` to return the same result on repeated calls. `get_subset`
      iterates a map. To make the process of iteration deterministic, use a
      `BTreeMap` instead of a `HashMap`.
      bdf6043f
    • Denis_P's avatar
      triggers srml-contracts-waterfall ci (#4490) · e2b23f25
      Denis_P authored
      * triggers srml-contracts-waterfall ci
      
      * only nightly and merges
      
      * substrate does not use tager cache so far
      e2b23f25
    • Tomasz Drwięga's avatar
      Fix `period` of offchain transactions. (#4521) · e2441808
      Tomasz Drwięga authored
      * Fix period of offchain transactions.
      
      * Calculate period dynamically.
      
      * Convert to u64.
      e2441808
    • Bastian Köcher's avatar
    • ddorgan's avatar
      b94464fb
    • Pierre Krieger's avatar
      4119391c
  2. Jan 02, 2020
  3. Dec 31, 2019
  4. Dec 30, 2019
  5. Dec 29, 2019
    • Bastian Köcher's avatar
      Make wasm-builder remove invalid members (#4510) · dacb199f
      Bastian Köcher authored
      * Make wasm-builder remove invalid members
      
      Wasm-builder now removes members that point to packages that do not
      exist anymore or that were renamed. Up to now, the build would fail and
      required manual fixing.
      
      * Fixes build
      dacb199f
  6. Dec 28, 2019
    • Bastian Köcher's avatar
      Fix cli for structopt 0.3.7 and pin to that version (#4509) · 43ee8a35
      Bastian Köcher authored
      * Fix cli for structopt 0.3.7 and pin to that version
      
      This is just some hotfix to make everything compile. In the future it
      will require another pr to not depend on internals of StructOpt, but
      that will probably also require some additions to StructOpt itself. To
      not break the code again with another StructOpt, this also pins the
      StructOpt version.
      
      * Fix benches
      
      * Fix for fix
      43ee8a35
    • Denis_P's avatar
      less dupes, cleanup (#4491) · d1012cd8
      Denis_P authored
      * build node job is separated from build substrate; less dupes, cleanup
      
      * it's not effective yet to split these jobs
      d1012cd8
  7. Dec 27, 2019
  8. Dec 26, 2019
  9. Dec 25, 2019
  10. Dec 24, 2019
  11. Dec 23, 2019
  12. Dec 22, 2019
  13. Dec 21, 2019
  14. Dec 20, 2019