Skip to content
  1. Aug 20, 2020
    • Web3 Philosopher's avatar
      Merge Subkey into sc-cli (#4954) · 69632724
      Web3 Philosopher authored
      * draft
      
      * revert
      
      * WIP
      
      * all that remains is tests
      
      * update Cargo.lock
      
      * tests WIP
      
      * WIP refactor node-template-runtime and node-runtime
      
      * implments sc_cli::RuntimeAdapter for node_template_runtime::Runtime
      
      * final draft
      
      * fix update_config for subcommands
      
      * proper AccountId decoding
      
      * test-runtime tests
      
      * revert
      
      * move RuntimeAdapter to cli-utils
      
      * use &'static str for TryFrom::<&'a str>::Error for Ss58AddressFormat
      
      * tests
      
      * add frame-system to sc-cli dev-dependencies
      
      * add frame-system to sc-cli dev-dependencies
      
      * fix ui test
      
      * wip
      
      * fixed inspect test
      
      * bump impl version
      
      * bump impl version, fixx spaces remove todos
      
      * pallet-balances-cli, rustc for some reason cannot resolve pallet_balances_cli in node-cli 😩
      
      * wip
      
      * Subcommand::run takes &self
      
      * can't believe i missed that 🤦🏾‍♂️
      
      * bump wasm-bindgen for some reason
      
      * adds key subcommand, rename generate-node-key to generate-node-id
      
      * cargo update and crossed fingers 🤞🏽
      
      
      
      * update ui test
      
      * update more ui tests
      
      * should be all good now
      
      * revert subkey change
      
      * revert subkey change
      
      * adds frame-utilities-cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * removes frame from sc-cli, fix license
      
      * my editor and ci disagrees on line width
      
      * bump spec version
      
      * turn off default features for parity-scale-codec
      
      * enable full_crypto feature for sp-core in cli-utils
      
      * merge frame-utilities-cli with pallet-balances-cli
      
      * remove full_crypto feature from sp_core in cli-utils
      
      * bump Cargo.lock
      
      * cli-utils -> frame-utils
      
      * rename BlockNumber to GenericNumber, fix spaces
      
      * fix spaces
      
      * construct additional_signed manually
      
      * sign test
      
      * remove unused vars
      
      * implement subkey with frame-utilities-cli and sc_cli
      
      * fix moduleid test
      
      * CI and clion disagree on line widths
      
      * adds associated Params type to SignedExtensionProvider
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      
      * move some code around
      
      * removes unneccesary generic params
      
      * moves module_id back to frame_utilities_cli
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * remove print_ext
      
      * remove MaybeDisplay from pallet_balances::Trait::Balance
      
      * a lot of stuff tbh
      
      * adds ExtrasParamsBuilder
      
      * remove tests for ModuleIdCmd
      
      * address comments from PR
      
      * bump Cargo.lock
      
      * manually insert key into keystore
      
      * remove unnecessary SharedParams
      
      * add validation to vanity pattern, remove unused arg
      
      * remove SharedParams from Sign, Vanity, Verify
      
      * remove SharedParams from ModuleIdCmd, remove expect from Verify, new line to Cargo.toml
      
      * remove SharedParams from InsertCmd
      
      * 🤦🏾
      
      ‍♂️
      
      * deleted prometheus.yml
      
      * move a few things around
      
      * fix vanity test
      
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      69632724
  2. Aug 19, 2020
  3. Aug 18, 2020
    • Bastian Köcher's avatar
      Import `IterableStorage*` traits by `decl_storage!` (#6907) · f58e9504
      Bastian Köcher authored
      Import `IterableStorageMap` and `IterableStorageDoubleMap` automatically
      by `decl_storage!` as the other storage traits.
      f58e9504
    • Roman Borschel's avatar
      Add support for sourced metrics. (#6895) · 807329dd
      Roman Borschel authored
      
      
      * Add support for sourced metrics.
      
      A sourced metric is a metric that obtains its values
      from an existing source, rather than the values being
      independently recorded. It thus allows collecting
      metrics from existing counters or gauges without
      having to duplicate them in a dedicated prometheus
      counter or gauge (and hence another atomic value).
      
      The first use-case is to feed the bandwidth counters
      from libp2p directly into prometheus.
      
      * Tabs, not spaces.
      
      * Tweak bandwidth counter registration.
      
      * Add debug assertion for variable labels and values.
      
      * Document monotonicity requirement for sourced counters.
      
      * CI
      
      * Update client/network/src/service.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      807329dd
  4. Aug 17, 2020
  5. Aug 15, 2020
  6. Aug 14, 2020
    • Max Inden's avatar
      client/authority-discovery: Revert query interval change (#6897) · 6611019e
      Max Inden authored
      Revert the accidental query interval change from every one minute back
      to every 10 minutes.
      6611019e
    • Roman Borschel's avatar
      Update to libp2p-0.23. (#6870) · 327e0294
      Roman Borschel authored
      * Update to libp2p-0.23.
      
      Thereby incorporate bandwidth measurement along the
      lines previously done by libp2p itself.
      
      * Tweak dependencies for wasm32 compilation.
      
      For wasm32 we need to enable unstable features to
      make `task::Builder::local` available.
      
      * Simplify dependencies.
      
      * Simplify.
      
      Leave the calculation of bytes sent/received per second
      to the outer layers of the code, subject to their own
      individual update intervals.
      
      * Cleanup
      
      * Re-add lost dev dependency.
      
      * Avoid division by zero.
      
      * Remove redundant metric.
      
      * Enable sending of noise legacy handshakes.
      
      * Add comment about monotonic gauge.
      
      * CI
      327e0294
    • Alan Sapede's avatar
      Adds debug logs to EVM frame (#6887) · f94aae1d
      Alan Sapede authored
      f94aae1d
  7. Aug 13, 2020
  8. Aug 12, 2020
    • Bastian Köcher's avatar
      Make `HexDisplay` useable in `no_std` (#6883) · b6d444fd
      Bastian Köcher authored
      Actually I use this quite often when debugging some WASM bugs and there
      is no harm in enabling it by default. Before I just always copied it
      everytime I needed it.
      b6d444fd
    • Max Inden's avatar
      client/authority-discovery: Introduce AuthorityDiscoveryService (#6760) · 2d5ec723
      Max Inden authored
      * client/authority-discovery: Rename AuthorityDiscovery to XXXWorker
      
      * client/authority-discovery: Introduce AuthorityDiscoveryService
      
      Add a basic `AuthorityDiscoveryService` implementation which enables
      callers to get the addresses for a given `AuthorityId` from the local
      cache.
      
      * client/authority-discovery: Split into worker and service mod
      
      Move `Service` and `Worker` to their own Rust modules resulting in the
      following file structure.
      
      ├── build.rs
      ├── Cargo.toml
      └── src
          ├── error.rs
          ├── lib.rs
          ├── service.rs
          ├── tests.rs
          ├── worker
          │   ├── addr_cache.rs
          │   ├── schema
          │   │   └── dht.proto
          │   └── tests.rs
          └── worker.rs
      
      * client/authority-discovery: Cache PeerId -> AuthorityId mapping
      
      * client/authority-discovery: Update priority group on interval
      
      Instead of updating the authority discovery peerset priority group each
      time a new DHT value is found, update it regularly on an interval.
      
      This removes the need for deterministic random selection. Instead of
      trying to return a random stable set of `Multiaddr`s, the `AddrCache`
      now returns a random set on each call.
      
      * client/authority-discovery: Implement Service::get_authority_id
      
      * client/authority-discovery: Use HashMap instead of BTreeMap
      
      * client/authority-discovery: Rework priority group interval
      
      * client/authority-discovery: Fix comment
      
      * bin/node/cli: Update authority discovery constructor
      
      * client/authority-discovery: Fuse from_service receiver
      
      * client/authority-discovery: Remove Rng import
      
      * client/authority-discovery: Ignore Multiaddr without PeerId
      
      * client/authority-discovery/service: Add note on returned None
      
      * client/authority-discovery/addr_cache: Replace double clone with deref
      2d5ec723
    • Cecile Tonglet's avatar
      Add async test helper to timeout and provide a task_executor automatically (#6651) · 93612c11
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 74655ede
      Parent branch: origin/master
      
      * Add async test helper to timeout and provide a task_executor automatically
      
      * simplify error message to avoid difference between CI and locally
      
      * forgot env var
      
      * Use runtime env var instead of build env var
      
      * Rename variable to SUBSTRATE_TEST_TIMEOUT
      
      * CLEANUP
      
      Forked at: 74655ede
      
      
      Parent branch: origin/master
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Re-export from test-utils
      
      * Default value to 120
      
      * fix wrong crate in ci
      
      * Revert "Default value to 120"
      
      This reverts commit 8e458717078b242ffce7d3c4f66241d76f075125.
      
      * Fix version
      
      * WIP
      
      Forked at: 74655ede
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 74655ede
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 74655ede
      Parent branch: origin/master
      
      * remove feature flag
      
      * fix missing dependency
      
      * CLEANUP
      
      Forked at: 74655ede
      
      
      Parent branch: origin/master
      
      * fix test
      
      * Removed autotests=false
      
      * Some doc...
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * WIP
      
      Forked at: 74655ede
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 74655ede
      
      
      Parent branch: origin/master
      
      * Update test-utils/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      93612c11
    • mattrutherford's avatar
      Implement tracing::Event handling & parent_id for spans and events (#6672) · 9442c19b
      mattrutherford authored
      
      
      * implement events handling, implement parent_id for spans & events
      
      * add events to sp_io::storage
      
      * update test
      
      * add tests
      
      * adjust limit
      
      * let tracing crate handle parent_ids
      
      * re-enable current-id tracking
      
      * add test for threads with CurrentSpan
      
      * fix log level
      
      * remove redundant check for non wasm traces
      
      * remove duplicate definition in test
      
      * Adding conditional events API
      
      * prefer explicit parent_id over current,
      
      enhance test
      
      * limit changes to client::tracing event implementation
      
      * remove From impl due to fallback required on parent_id
      
      * implement SPAN_LIMIT
      
      change event log output
      
      * change version of tracing-core
      
      * update dependancies
      
      * revert limit
      
      * remove duplicate dependency
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarMatt Rutherford <[email protected]>
      Co-authored-by: default avatarBenjamin Kampmann <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      9442c19b
    • Wei Tang's avatar
      pallet-evm: fix wrong logic in mutate_account_basic (#6786) · 64901c01
      Wei Tang authored
      * pallet-evm: fix wrong logic in mutate_account_basic
      
      * Add test for mutate account
      64901c01
    • Pierre Krieger's avatar
      Add a warning if users pass --sentry or --sentry-nodes (#6779) · 36a8c720
      Pierre Krieger authored
      
      
      * Add a warning if users pass --sentry or --sentry-nodes
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Fix text
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarMax Inden <[email protected]>
      36a8c720
    • Shaopeng Wang's avatar
      Implement 'transactional' annotation for runtime functions. (#6763) · a531c5b7
      Shaopeng Wang authored
      * Implement 'transactional' annotation for runtime functions.
      
      * Allow function attributes for dispatchable calls in decl_module.
      
      * decl_module docs: add transactional function example.
      
      * decl_module docs: add function attributes notes.
      
      * Fix license header.
      a531c5b7
    • Pierre Krieger's avatar
      Fuse the import queue receiver (#6876) · c0ebb00f
      Pierre Krieger authored
      * Fix the import queue receiver
      
      * Add logging
      c0ebb00f
  9. Aug 11, 2020
  10. Aug 10, 2020
    • André Silva's avatar
    • Alexander Theißen's avatar
      seal: Change prefix and module name from "ext_" to "seal_" for contract callable functions (#6798) · 04b185e3
      Alexander Theißen authored
      * seal: Change prefix "ext_" to "seal_" for contract callable functions
      
      The word Ext is a overloaded term in the context of substrate. It usually
      is a trait which abstracts away access to external resources usually in order
      to mock them away for the purpose of tests. The contract module has its own
      `Ext` trait in addition the the substrate `Ext` which makes things even more
      confusing.
      
      In order to differentiate the contract callable functions more clearly from
      this `Ext` concept we rename them to use the "seal_" prefix instead.
      
      This should change no behaviour at all. This is a pure renaming commit.
      
      * seal: Rename import module from "env" to "seal0"
      
      * seal: Fixup integration test
      
      * seal: Add more tests for new import module names
      04b185e3