1. Aug 24, 2020
    • André Silva's avatar
      grandpa: always create and send justification if there are any subscribers (#6935) · 243873a7
      André Silva authored
      * grandpa: use bytes type for justification rpc notification
      
      * grandpa: always create justification if there are rpc subscribers
      
      * grandpa: wording
      
      * grandpa: replace notify_justification macro with function
      
      * grandpa: prefer Option<&T> over &Option<T>
      243873a7
    • Shawn Tabrizi's avatar
      Enable verification logic when executing benchmarks (#6929) · bf843b8f
      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
      bf843b8f
    • Ashley's avatar
      Dynamically generate CHT roots on a full client (#6944) · 9f99d5f0
      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
      9f99d5f0
    • Ashley's avatar
      Add a `LightSyncState` field to the chain spec (#6894) · c3fcedde
      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]>
      c3fcedde
    • Xiliang Chen's avatar
      expose Deposit (#6943) · d3ab36df
      Xiliang Chen authored
      d3ab36df
    • Max Inden's avatar
      client/authority-discovery: Append PeerId to Multiaddr at most once (#6933) · 735dc7c5
      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
      735dc7c5
  2. Aug 23, 2020
    • Bastian Köcher's avatar
      Make Ss58AddressFormat display less expressive (#6941) · 72102d25
      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.
      72102d25
    • Pierre Krieger's avatar
      Wait for all notifications protocols to be open before reporting opening (#6821) · ddf333c4
      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]>
      ddf333c4
    • Gavin Wood's avatar
      Time-delay proxies (#6770) · dfe2871b
      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]>
      dfe2871b
  3. Aug 22, 2020
  4. Aug 21, 2020
  5. Aug 20, 2020
    • Pierre Krieger's avatar
      Remove the legacy requests-answering protocols (#6709) · 8b0a5ba7
      Pierre Krieger authored
      Co-authored-by: parity-processbot <>
      8b0a5ba7
    • Pierre Krieger's avatar
      Try un-ignore flaky test (#6923) · 83aa4182
      Pierre Krieger authored
      83aa4182
    • Benjamin Kampmann's avatar
      prepping for releasing rc6 (#6922) · be8bb186
      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
      2 tags
      be8bb186
    • Cecile Tonglet's avatar
      Clean shutdown for subcommands (#6909) · 9c679b37
      Cecile Tonglet authored
      9c679b37
    • Web3 Philosopher's avatar
      Merge Subkey into sc-cli (#4954) · 6e098a10
      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]>
      6e098a10
  6. Aug 19, 2020
  7. Aug 18, 2020
    • Bastian Köcher's avatar
      Import `IterableStorage*` traits by `decl_storage!` (#6907) · 3f49041b
      Bastian Köcher authored
      Import `IterableStorageMap` and `IterableStorageDoubleMap` automatically
      by `decl_storage!` as the other storage traits.
      3f49041b
    • Roman Borschel's avatar
      Add support for sourced metrics. (#6895) · f8c83bd5
      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]>
      f8c83bd5
  8. Aug 17, 2020
  9. Aug 15, 2020
  10. Aug 14, 2020
    • Max Inden's avatar
      client/authority-discovery: Revert query interval change (#6897) · eec7d713
      Max Inden authored
      Revert the accidental query interval change from every one minute back
      to every 10 minutes.
      eec7d713
    • Roman Borschel's avatar
      Update to libp2p-0.23. (#6870) · 13b0650c
      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
      13b0650c
    • Alan Sapede's avatar
      Adds debug logs to EVM frame (#6887) · 0e703a50
      Alan Sapede authored
      0e703a50
  11. Aug 13, 2020
  12. Aug 12, 2020
    • Bastian Köcher's avatar
      Make `HexDisplay` useable in `no_std` (#6883) · ed4f7a11
      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.
      ed4f7a11
    • Max Inden's avatar
      client/authority-discovery: Introduce AuthorityDiscoveryService (#6760) · 473a23f4
      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
      473a23f4
    • Cecile Tonglet's avatar
      Add async test helper to timeout and provide a task_executor automatically (#6651) · c495f89c
      Cecile Tonglet authored
      * Initial commit
      
      Forked at: 60e3a693
      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: 60e3a693
      
      
      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 8e458717.
      
      * Fix version
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      Parent branch: origin/master
      
      * remove feature flag
      
      * fix missing dependency
      
      * CLEANUP
      
      Forked at: 60e3a693
      
      
      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: 60e3a693
      Parent branch: origin/master
      
      * WIP
      
      Forked at: 60e3a693
      
      
      Parent branch: origin/master
      
      * Update test-utils/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c495f89c