1. Jun 18, 2020
    • mattrutherford's avatar
      Runtime interface to add support for tracing from wasm (#6381) · 81ba3e28
      mattrutherford authored
      * Add span recording to tracing implementation
      
      * Add tracing proxy
      
      * switch to rustc_hash::FxHashMap
      
      * Replace lazy_static and hashmap with thread_local and vec.
      
      * fix marking valid span as invalid while removing invalid spans
      
      * refactor, add wasm_tracing module in `support`
      
      * update registered spans
      
      * tidy up
      
      * typos
      
      * refactor
      
      * update flag name to signal lost trace - `is_valid_trace`
      
      * update flag name to signal lost trace - `is_valid_trace`
      
      * update docs
      
      * update docs
      
      * Use tracing Field recording to store the actual `name` and `target`
      from wasm traces.
      
      * fix debug log in subscriber + small refactor
      
      * add tests
      
      * handle misuse in case trying to exit span not held
      
      * Implement filter for wasm traces, simplify field recording for primitive types
      
      * remove superfluous warning
      
      * update docs
      
      * Update primitives/tracing/src/proxy.rs
      
      Co-authored-by: Kian Paimani <5588131+kianenigma...
      81ba3e28
    • Wei Tang's avatar
      Pallet: Atomic Swap (#6349) · bd72cb62
      Wei Tang authored
      
      
      * Init atomic swap pallet
      
      * Implement module swap operations
      
      * Add successful swap test
      
      * Bump node spec_version
      
      * Fix storage name
      
      * Add ProofLimit parameter to prevent proof size being too large
      
      * Add missing events
      
      * Basic weight support
      
      * Add basic docs
      
      * Mark swap on claim
      
      This handles the additional case if `repatriate_reserved` fails.
      
      * Add additional expire handler
      
      * Update frame/atomic-swap/src/lib.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Add docs on ProofLimit
      
      * Fix test
      
      * Return Ok(()) even when the transfer fails
      
      Because we need to mark the swap as claimed no matter what.
      
      * Remove retry logic
      
      It's overkill. Swap is about something being executed, not necessarily successful.
      Although there should be logic (reserve and unreserve) to make it so that both parties *believes*
      that the execution is successful.
      
      * succeed -> succeeded
      
      * Add docs on duration -- revealer should use duration shorter than counterparty
      
      * Missing trait type
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      bd72cb62
    • Arkadiy Paronyan's avatar
      Allow empty values in the storage (#6364) · b02101e9
      Arkadiy Paronyan authored
      * Allow empty values in the storage
      
      * Bump trie-bench
      
      * Bump trie-bench
      b02101e9
    • Shaopeng Wang's avatar
      f8afa520
    • Bastian Köcher's avatar
      `decl_module!` print better error on duplicate reserved keyword (#6384) · d6d688c4
      Bastian Köcher authored
      * `decl_module!` print better error on duplicate reserved keyword
      
      This prints a better error message on duplicated reserved keywords,
      instead of complaining because of missing `origin`.
      
      * Review feedback
      d6d688c4
    • Pierre Krieger's avatar
      a2653e87
    • Gavin Wood's avatar
      Restrict remove_proxies (#6383) · 8e1f7531
      Gavin Wood authored
      8e1f7531
  2. Jun 17, 2020
  3. Jun 16, 2020
  4. Jun 15, 2020
  5. Jun 14, 2020
  6. Jun 13, 2020
  7. Jun 12, 2020
    • joe petrowski's avatar
      Add events for balance reserve and unreserve functions (#6330) · d735e4d0
      joe petrowski authored
      
      
      * almost works
      
      * add clone to BalanceStatus
      
      * reserve event
      
      * fix staking tests
      
      * fix balances tests
      
      * Update frame/balances/src/tests.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * restore tests and move event emission
      
      * move repatriate reserved event outside of mutate_account
      
      * clean up events in tests
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      d735e4d0
    • Alexander Theißen's avatar
      Deprecate FunctionOf and remove its users (#6340) · afdf5ef0
      Alexander Theißen authored
      * Deprecate FunctionOf and remove users
      
      * Remove unused import
      afdf5ef0
    • Bastian Köcher's avatar
      Fix transaction pool event sending (#6341) · 384be7e2
      Bastian Köcher authored
      This pr fixes a bug with the transaction pool not sending certain events
      like finalized and also fixes the order of events. The problem with the
      finalized event was that we did not extracted pruned extrinsics if there
      were not ready transactions in the pool. However this is wrong, if we
      have a re-org, a tx is clearly not ready anymore and we still need to
      send a pruned event for it because it is in a new block included. This
      also lead to sending "ready" events and tx being re-validated. The
      listener also only send the "finalized" event if it has seen a block as
      being included, which did not happen before with the old code.
      
      The second fix of the pr is the order of events. If we prune and retract the
      same transaction in the same block, we first need to send the "retract"
      event and after that the "pruned" event, because finalization takes
      longer and this would lead to the UI showing "retract" while it actually
      is included.
      384be7e2
    • André Silva's avatar
      client: use appropriate ExecutionContext for initial sync / regular import (#6180) · 0dc66347
      André Silva authored
      * client: use appropriate ExecutionContext for sync/import
      
      * client: remove dead code
      
      * client: ExecutionContext: distinguish between own and foreign imports
      
      * client: fix cli parameter doc
      
      * Revert "client: ExecutionContext: distinguish between own and foreign imports"
      
      This reverts commit 0fac1152.
      
      * primitives: add docs for ExecutionContext
      
      * cli: execution strategy docs
      
      * cli: use different execution context for importing block on validator
      
      * cli: remove defaults from execution context flags
      0dc66347
    • Alexander Theißen's avatar
      Fix check-line-width CI script (#6326) · 6b45e245
      Alexander Theißen authored
      * Compare lines to the hash that the PR branched off from
      
      * Use git merge-base to determine common ancestor
      
      * Fixup
      6b45e245
    • Dan Forbes's avatar
      Basic documentation for Scheduler pallet (#6338) · 883c89a8
      Dan Forbes authored
      Closes #5912
      883c89a8
  8. Jun 11, 2020