1. Jun 23, 2020
    • Bastian Köcher's avatar
      Fix `sp-api` handling of multiple arguments (#6484) · c771821c
      Bastian Köcher authored
      With the switch to `decode_all_with_depth_limit` we silently broken
      support for functions with multiple arguments. The old generated code
      tried to decode each parameter separately, which does not play well with
      `decode_all`.
      
      This pr adds a test to ensure that this does not happen again and fixes
      the bug by decoding everything at once by wrapping it into tuples.
      c771821c
    • Cecile Tonglet's avatar
      impl Debug for sc_service::Configuration (#6400) · 6221146c
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: d735e4d0
      
      
      No parent branch.
      
      * Make sc_service::Configuration derive Debug
      
      * Replace task_executor fn's input by proper TaskExecutor type (cleaner)
      
      * impl From<Fn> for TaskExecutor
      
      * Update client/cli/src/runner.rs
      
      * Add some doc, examples and tests
      
      * Replace Deref by fn spawn as suggested
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      6221146c
    • Shawn Tabrizi's avatar
      Remove lingering runtime upgrades (#6476) · cf7432a5
      Shawn Tabrizi authored
      * Remove lingering runtime upgrades
      
      * remove unused warnings
      
      * remove tests
      cf7432a5
    • pscott's avatar
      Optimize offchain worker api by re-using http-client (#6454) · fed834c8
      pscott authored
      * Fix typo in offchain's docs
      
      * Use Self keyword in AsyncApi::new()
      
      * Move httpclient to be part of OffchainWorkers to optimize block import
      
      * Fix compilation errors for tests
      
      * Add wrapper struct for HyperClient
      
      * Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit
      
      * Revert "Use lazy_static share SharedClient amongst OffchainWorkers. Remove the need to raise the fd limit"
      
      This reverts commit 7af97498.
      
      * Add lazy_static for tests
      fed834c8
    • Alexander Theißen's avatar
      Implement nested storage transactions (#6269) · 5a102f7c
      Alexander Theißen authored
      
      
      * Add transactional storage functionality to OverlayChanges
      
      A collection already has a natural None state. No need to
      wrap it with an option.
      
      * Add storage transactions runtime interface
      
      * Add frame support for transactions
      
      * Fix committed typo
      
      * Rename 'changes' variable to 'overlay'
      
      * Fix renaming change
      
      * Fixed strange line break
      
      * Rename clear to clear_where
      
      * Add comment regarding delete value on mutation
      
      * Add comment which changes are covered by a transaction
      
      * Do force the arg to with_transaction return a Result
      
      * Use rust doc comments on every documentable place
      
      * Fix wording of insert_diry doc
      
      * Improve doc on start_transaction
      
      * Rename value to overlayed in close_transaction
      
      * Inline negation
      
      * Improve wording of close_transaction comments
      
      * Get rid of an expect by using get_or_insert_with
      
      * Remove trailing whitespace
      
      * Rename should to expected in tests
      
      * Rolling back a transaction must mark the overlay as dirty
      
      * Protect client initiated storage tx from being droped by runtime
      
      * Review nits
      
      * Return Err when entering or exiting runtime fails
      
      * Documentation fixup
      
      * Remove close type
      
      * Move enter/exit runtime to excute_aux in the state-machine
      
      * Rename Discard -> Rollback
      
      * Move child changeset creation to constructor
      
      * Move child spawning into the closure
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fixup for code suggestion
      
      * Unify re-exports
      
      * Rename overlay_changes to mod.rs and move into subdir
      
      * Change proof wording
      
      * Adapt a new test from master to storage-tx
      
      * Suggestions from the latest round of review
      
      * Fix warning message
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      5a102f7c
    • Roman Borschel's avatar
      Avoid panic on dropping a `sc_network::service::out_events::Receiver`. (#6458) · 19826b97
      Roman Borschel authored
      * Avoid panic on dropping a `Receiver`.
      
      * CI
      19826b97
  2. Jun 22, 2020
  3. Jun 21, 2020
  4. Jun 20, 2020
  5. Jun 19, 2020
  6. Jun 18, 2020