Skip to content
  1. Aug 24, 2020
    • Shawn Tabrizi's avatar
      Enable verification logic when executing benchmarks (#6929) · 4462f715
      Shawn Tabrizi authored
      * Add `--verify` flag to benchmark execution
      
      * make it so `--verify` can be used for getting the actual benchmarks
      
      * undo manual testing
      
      * oops
      
      * use benchmark config struct
      
      * verify is default on, docs update
      
      * remove clone
      
      * improve formatting
      
      * fix test
      
      * bump impl for ci
      4462f715
    • Ashley's avatar
      Dynamically generate CHT roots on a full client (#6944) · c8ca2ce1
      Ashley authored
      * Generate CHT roots on a full client
      
      * add changes_trie_root function
      
      * Add a test
      
      * Line widths
      
      * Fix sc-service-test
      
      * Clarify comments
      
      * Revert comments
      c8ca2ce1
    • Ashley's avatar
      Add a `LightSyncState` field to the chain spec (#6894) · f009f6c2
      Ashley authored
      
      
      * Reset code, almost ready for PR
      
      * Improved build_hardcoded_spec
      
      * Fix line widths
      
      * Fix tests
      
      * Fix sc-service-test
      
      * Suggestions from code review
      
      * Rename to LightSyncState
      
      * It's not syncing :^(
      
      * It syncs!
      
      * Remove rpc call
      
      * Convert spaces to tabs
      
      * Moved sc-service things to export_sync_state.rs
      
      * Fix tests
      
      * Wait for syncing with network_status_sinks
      
      * Remove sc-network from node-template
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Various changes, split the flag up into 2 pieces to make testing easier.
      
      * Update client/cli/src/commands/build_spec_cmd.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Revert a lot of changes
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      f009f6c2
    • Xiliang Chen's avatar
      expose Deposit (#6943) · b1a8ff17
      Xiliang Chen authored
      b1a8ff17
    • Max Inden's avatar
      client/authority-discovery: Append PeerId to Multiaddr at most once (#6933) · 5c500aa7
      Max Inden authored
      * client/authority-discovery/worker: Extract address getter
      
      * client/authority-discovery: Test for no duplicate p2p components
      
      * client/authority-discovery: Append PeerId to Multiaddr at most once
      
      When collecting the addresses to be published for the local node,
      `addresses_to_publish` adds the local nodes `PeerId` to each
      `Multiaddr`. Before doing so, ensure the `Multiaddr` does not already
      contain one.
      
      * client/authority-discovery: Remove explicit return
      5c500aa7
  2. Aug 23, 2020
    • Bastian Köcher's avatar
      Make Ss58AddressFormat display less expressive (#6941) · da13dc3c
      Bastian Köcher authored
      Instead of using the `Debug` implementation inside the `Display`
      implementation this pr changes it to display only the name of the format.
      da13dc3c
    • Pierre Krieger's avatar
      Wait for all notifications protocols to be open before reporting opening (#6821) · 6d9928e4
      Pierre Krieger authored
      
      
      * Wait for all notifications protocols to be open before reporting opening
      
      * Update client/network/src/protocol/generic_proto/handler/notif_out.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      * Concern
      
      * Fix attempt
      
      * Another fix attempt
      
      * Update client/network/src/protocol/generic_proto/handler/group.rs
      
      Co-authored-by: default avatarMax Inden <[email protected]>
      
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarMax Inden <[email protected]>
      6d9928e4
    • Gavin Wood's avatar
      Time-delay proxies (#6770) · cf4c744e
      Gavin Wood authored
      
      
      * Time-delay proxies.
      
      * Tests
      
      * Initial couple of benchmarks
      
      * Fix up runtime
      
      * Last couple of benchmarks
      
      * Tests
      
      * Docs
      
      * Migration
      
      * add tests to proxy benchmarks
      
      * generated benchmarks, not integrated
      
      * Fix weight trait
      
      * integrate weightinfo
      
      * default weight
      
      * Grumble
      
      * Deduplication, split proxy from announced_proxy and don't require reauthentication
      
      * Fix
      
      * Remoe superfluous
      
      * Typos
      
      * Indent
      
      * Fix
      
      * Fixes
      
      * rename 'proxy_announced' -> 'announced_proxy'
      
      * flip rename
      
      * comments and spacing
      
      * fix proxy_announced
      
      * remove unneeded `execute` marker
      
      * Avoid unneeded changes to extrinsic indices
      
      * Cleanup
      
      * Fixes
      
      * Update Benchmarks and Weights for Delayed Proxy (#6811)
      
      * update bechmarks to parameterize announcements
      
      * remove announcement param from proxy
      
      * Update pallet_proxy.rs
      
      * Update weights
      
      * Bump runtime
      
      * Fix benchmark
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      cf4c744e
  3. Aug 22, 2020
  4. Aug 21, 2020
    • Qinxuan Chen's avatar
      Remove duplicated dependencies (#6930) · 8ae16955
      Qinxuan Chen authored
      
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      8ae16955
    • Max Inden's avatar
      *: Update to next libp2p version 0.24.0 (#6891) · 69e349bd
      Max Inden authored
      * *: Update to next libp2p version (likely v0.24.0)
      
      * Revert "*: Update to next libp2p version (likely v0.24.0)"
      
      This reverts commit ffe1545aba6c2557a2843579de331f3fc1c60743.
      
      * */Cargo.toml: Update to libp2p v0.24.0
      
      * client/network/src/service: Handle ConnectionClosed returning Option
      
      * Cargo.*: Test kad usize conversion
      
      * Revert "Cargo.*: Test kad usize conversion"
      
      This reverts commit ad317879782f982cb4a4c76029a72b5b97e82bec.
      
      * Cargo.lock: Update to libp2p-kad v0.22.1
      
      * client/cli/Cargo.toml: Update to libp2p 0.24.0
      69e349bd
  5. Aug 20, 2020
    • Pierre Krieger's avatar
      Remove the legacy requests-answering protocols (#6709) · 09662dc8
      Pierre Krieger authored
      Co-authored-by: parity-processbot <>
      09662dc8
    • Pierre Krieger's avatar
      Try un-ignore flaky test (#6923) · 74cf119d
      Pierre Krieger authored
      74cf119d
    • Benjamin Kampmann's avatar
      prepping for releasing rc6 (#6922) · 2416aa79
      Benjamin Kampmann authored
      * Bump version
      
      * update test-utils crates to be ready for publishing
      
      * adding changelog
      
      * Adding automaticly generated READMEs
      
      * fixing versions
      
      * another version mishap
      2416aa79
    • Cecile Tonglet's avatar
      Clean shutdown for subcommands (#6909) · 6f59c95c
      Cecile Tonglet authored
      6f59c95c
    • 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
  6. Aug 19, 2020
  7. 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
  8. Aug 17, 2020
  9. Aug 15, 2020
  10. 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
  11. Aug 13, 2020
  12. 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