1. Feb 06, 2020
    • gabriel klawitter's avatar
      ci: enable build for pre-tags (#4836) · 203445bb
      gabriel klawitter authored
      * build for pre-tags
      
      * shallow clone rustdocs
      203445bb
    • Bastian Köcher's avatar
      Allocator improvements/clean ups (#4838) · 13d88acc
      Bastian Köcher authored
      * FreeingBumpAllocator: Initialize the heads to `u32::max_value()`
      
      `self.heads` can point to an element with the index `0` in the heap.
      This would make the allocator fail to reuse this element.
      
      * Simplify the `PREFIX_SIZE` handling
      13d88acc
    • Cecile Tonglet's avatar
      CLI improvements & fixes (#4812) · 099cd0f2
      Cecile Tonglet authored
      These are a few changes I missed during the refactoring.
      
      1. Initialization issue and boilerplate
      
          Most importantly: part of the `Configuration` initialization was done in `sc_cli::init`. This means the user can not benefit from this initialization boilerplate if they have multiple `Configuration` since `sc_cli::init` can only be called once.
      
      2. Boilerplate for `VersionInfo` and `Configuration`
      
          I'm also answering to the critic of @bkchr on the initialization using version: https://github.com/paritytech/substrate/pull/4692/files/bea809d4c14a2ede953227ac885e3b3f9771c548#r372047238 This will allow initializing a `Configuration` and provide the version by default.
      
      3. Loading the `chain_spec` explicitly
      
          In the past it was done automatically but in some cases we want to delay this. I moved the code to `Configuration.load_spec()` so it can be called later on. `chain_spec` can also be written directly to the `Configuration` without using this `load_spec` helper.
      
      4. [deleted]
      
      5. Fixing issue that prevents the user to override the port
      
          In the refactoring I introduced a bug by mistake that could potentially prevent the CLI user to override the ports if defaults where provided for these ports (only on cumulus).
      
      6. Change task_executor from Box to Arc
      
          This is useful for cumulus where we have 2 nodes with 2 separate Configuration that need to spawn tasks to the same runtime.
      
      7. Renamed TasksExecutorRequired to TaskExecutor
      
          For consistency.
      
      This is related to https://github.com/paritytech/cumulus/issues/24
      
      This is the continuation (and hopefully the end of) #4692 
      099cd0f2
    • Marcio Diaz's avatar
      faf608ee
    • Bastian Köcher's avatar
      Fix memory leak in runtime interface (#4837) · 7d83cabf
      Bastian Köcher authored
      * Fix memory leak in runtime interface
      
      We used `slice::from_raw_parts` in runtime-interface which did not free
      the memory afterwards. This pr changes it to `Vec::from_raw_parts` to
      make sure `drop` is called properly and the values are freed.
      
      * Check that `len` is non-zero
      
      * Adds comment
      7d83cabf
    • Arkadiy Paronyan's avatar
      Fixed a few warnings (#4841) · 666b1c9f
      Arkadiy Paronyan authored
      666b1c9f
    • Jimmy Chu's avatar
      Node template folders restructuring (#4811) · 3fc91c76
      Jimmy Chu authored
      * Restructure node-template so it is clear that node, runtime, and pallets are separated
      * Separating to mock and tests
      * restructuring runtime to top-level
      * updated release script
      * updated Cargo.lock
      3fc91c76
    • Nikolay Volf's avatar
      do join_all (#4832) · c9e8aa3a
      Nikolay Volf authored
      c9e8aa3a
  2. Feb 05, 2020
  3. Feb 04, 2020
  4. Feb 03, 2020
  5. Feb 01, 2020
  6. Jan 31, 2020