Commit Graph

1293 Commits

Author SHA1 Message Date
Bastian Köcher 92313f6502 polkadot-collator: Switch to wasm only (#1054)
* polkadot-collator: Switch to wasm only

This switches the polkadot-collator to run everything in wasm only mode. While we should not that
yet with the relay chain, because it can happen that we run out of memory (very unlikely). On the
relay chain that would be bad, because we only have at max 2 sessions to bring everything back, for
Parachains that isn't such a problem as they would only stall and we could roll out a release that
fixes it. Besides that, Parachain validation on the relay chain happens in Wasm already all the time
and there is the memory usage even higher then on block import.

* cargo fmt

* remove unused var

Co-authored-by: Squirrel <gilescope@gmail.com>
2022-03-02 11:44:53 +00:00
Sebastian Kunert e42a7c3fff Improve conflicts to properly detect helper flags (#1063) 2022-03-02 12:13:33 +01:00
Sebastian Kunert 0546af470c Bump jsonrpsee from 0.8.0 to 0.9.0 2022-03-02 09:57:35 +00:00
dependabot[bot] 1213071d78 Bump jsonrpsee-core from 0.8.0 to 0.9.0
Bumps jsonrpsee-core from 0.8.0 to 0.9.0.

---
updated-dependencies:
- dependency-name: jsonrpsee-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 09:57:35 +00:00
Kai ac074d7230 Fix panic in pallet-collator-selection benchmarking (#1061)
* register validators in set_invulnerables benchmarking

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-03-02 09:24:36 +00:00
Dan Shields 65454fbf96 Update Cumulus to common Cargo formmating scheme (#1050)
* Update throughout with common Cargo formating scheme
2022-03-02 00:07:29 -07:00
Dan Shields ad5dd362b4 Add wasmtime feature to all parachain clients (#1058)
* add wasmtime feature to all parachain clients

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
2022-03-01 20:41:21 +00:00
Sebastian Kunert 234c42c2df Introduce rpc client for relay chain full node (#963)
* Initial network interface preparations

* Implement get_storage_by_key

* Implement `validators` and `session_index_for_child`

* Implement persisted_validation_data and candidate_pending_availability

* Fix method name for persisted_validation_data and add encoded params

* Implement `retrieve_dmq_contents` and `retrieve_all_inbound_hrmp_channel_contents`

* Implement `prove_read`

* Introduce separate RPC client, expose JsonRpSee errors

* Simplify closure in call_remote_runtime_function

* Implement import stream, upgrade JsonRpSee

* Implement finality stream

* Remove unused method from interface

* Implement `is_major_syncing`

* Implement `wait_on_block`

* Fix tests

* Unify error handling `ApiError`

* Replace WaitError with RelayChainError

* Wrap BlockChainError in RelayChainError

* Unify error handling in relay chain intefaces

* Fix return type of proof method

* Improve error handling of new methods

* Improve error handling and move logging outside of interface

* Clean up

* Remove unwanted changes, clean up

* Remove unused import

* Add format for StatemachineError and remove nused From trait

* Use 'thiserror' crate to simplify error handling

* Expose error for overseer, further simplify error handling

* Reintroduce network interface

* Implement cli option

* Adjust call_state method to use hashes

* Disable PoV recovery when RPC is used

* Add integration test for network full node

* Use Hash instead of BlockId to ensure compatibility with RPC interface

* Fix cargo check warnings

* Implement retries

* Remove `expect` statements from code

* Update jsonrpsee to 0.8.0 and make collator keys optional

* Make cli arguments conflicting

* Remove unused `block_status` method

* Add clippy fixes

* Cargo fmt

* Validate relay chain rpc url

* Clean up dependencies and add one more integration test

* Clean up

* Clean up dependencies of relay-chain-network

* Use hash instead of blockid for rpc methods

* Fix tests

* Update client/cli/src/lib.rs

Co-authored-by: Koute <koute@users.noreply.github.com>

* Improve error message of cli validation

* Add rpc client constructor

* Do not use debug formatting for errors

* Improve logging for remote runtime methods

* Only retry on transport problems

* Use PHash by value, rename test

* Improve tracing, return error  on relay-chain-interface build

* Fix naming, use generics instead of deserializing manually

* Rename RelayChainLocal and RelayChainNetwork

* lock

* Format

* Use impl trait for encodable runtime payload

* Only instantiate full node in tests when we need it

* Upgrade scale-codec to 3.0.0

* Improve expect log

Co-authored-by: Koute <koute@users.noreply.github.com>
2022-03-01 12:37:51 +01:00
dependabot[bot] 58e02c8497 Bump clap from 3.1.2 to 3.1.3 (#1053)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.2...v3.1.3)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 15:33:39 -08:00
wigy 6af1dd5f6f Companion to "Updating scale to v3" (#1013)
* Updating dependencies

* Adapting code to scale v3

* cargo fmt

* Fix compilation

* Update Cargo.lock

* TIL  exists

Co-authored-by: Bastian Köcher <info@kchr.de>
2022-02-25 13:40:24 +00:00
Alexander Theißen 364a88f1dd Add Canvas runtime to release automation (#1043) 2022-02-24 09:06:05 +00:00
dependabot[bot] fbaa5c7170 Bump clap from 3.1.1 to 3.1.2 (#1046)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.1...v3.1.2)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 23:58:52 +00:00
Bastian Köcher 351803a709 Remove the last node-primitives leftover... (#1047) 2022-02-23 22:52:17 +01:00
dependabot[bot] 5a0894c336 Bump proc-macro-crate from 1.1.2 to 1.1.3 (#1044)
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases)
- [Commits](https://github.com/bkchr/proc-macro-crate/commits)

---
updated-dependencies:
- dependency-name: proc-macro-crate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-23 21:12:32 +00:00
Éloïs 5c58fb6f56 fix: map cli parameter runtime_cache_size (#1042) 2022-02-23 19:47:49 +00:00
Alexander Theißen 2bcd7b535a Add canvas-rococo chainspec (#1031) 2022-02-23 16:19:14 +00:00
dependabot[bot] e6a2cfa692 Bump clap from 3.0.7 to 3.1.1 (#1035)
* Bump clap from 3.0.7 to 3.1.1

Bumps [clap](https://github.com/clap-rs/clap) from 3.0.7 to 3.1.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.0.7...v3.1.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix up deprecated usages

* cargo fmt

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
2022-02-23 08:31:24 +00:00
André Silva e3045a1696 Companion for substrate#10878 (#993)
* companion for slot duration changes

* fix aura inherent data provider

* update lockfile for {"polkadot"}

Co-authored-by: parity-processbot <>
2022-02-22 22:27:29 +00:00
Bastian Köcher 171a473b2a Remove node-primitives (#1032)
This is a crate that shouldn't be used outside of the Substrate Node. Here the correct crate is the
`polkadot-core-primitives` to get the `Balance` type.
2022-02-22 23:19:19 +01:00
dependabot[bot] daade87017 Bump assert_cmd from 0.12.2 to 2.0.4 (#1037)
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 0.12.2 to 2.0.4.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases)
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v0.12.2...v2.0.4)

---
updated-dependencies:
- dependency-name: assert_cmd
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 21:06:27 +01:00
dependabot[bot] eef9479087 Bump tracing from 0.1.30 to 0.1.31 (#1036)
Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.30 to 0.1.31.
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.30...tracing-0.1.31)

---
updated-dependencies:
- dependency-name: tracing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 19:19:58 +00:00
dependabot[bot] 307080e59a Bump parking_lot from 0.10.2 to 0.12.0 (#1030)
Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.10.2 to 0.12.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Amanieu/parking_lot/compare/0.10.2...0.12.0)

---
updated-dependencies:
- dependency-name: parking_lot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 19:39:09 +01:00
Bastian Köcher 0ffe7929a7 Dependabot: A new round... (#1034) 2022-02-22 16:58:27 +01:00
dependabot[bot] 6c81cbddb5 Bump nix from 0.17.0 to 0.23.1 (#1017)
Bumps [nix](https://github.com/nix-rust/nix) from 0.17.0 to 0.23.1.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.17.0...v0.23.1)

---
updated-dependencies:
- dependency-name: nix
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 16:50:13 +01:00
dependabot[bot] 4755cf7c28 Bump hex-literal from 0.2.1 to 0.3.4 (#1028)
Bumps [hex-literal](https://github.com/RustCrypto/utils) from 0.2.1 to 0.3.4.
- [Release notes](https://github.com/RustCrypto/utils/releases)
- [Commits](https://github.com/RustCrypto/utils/compare/hex-literal-v0.2.1...hex-literal-v0.3.4)

---
updated-dependencies:
- dependency-name: hex-literal
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 16:49:46 +01:00
Bastian Köcher c433484e40 Dependabot: Also ignore polkadot :grimaced: (#1026)
* Dependabot: Also ignore polkadot :grimaced:

* And XCM
2022-02-22 15:18:46 +01:00
Bastian Köcher d18429d18a Dependabot: Make sure to ignore all the Substrate deps (#1021) 2022-02-22 14:54:28 +01:00
Sergejs Kostjucenko 4abfb0093f Add dependabot config file (#1015) 2022-02-22 12:56:39 +01:00
Koute 222d5cfaa1 Bump tokio to 1.17.0 (#1014) 2022-02-22 11:01:17 +00:00
Alexander Theißen 829dadceca canvas: Run migrations defined by pallet-contracts (#1011)
* Run migrations defined by pallet-contracts

* cargo fmt
2022-02-21 15:28:25 +00:00
Squirrel 8cf65b2e3c updating benchmarking script (#1012)
we should be using production profile for benchmarks.
--raw does not exist: https://github.com/paritytech/substrate/pull/10771
2022-02-21 15:18:56 +00:00
Alexander Theißen dfe16328b0 canvas: More refactoring (#997)
* canvas: Move contracts config to own file

* Reduce usage of parameter_types where possible

* Fix try-runtime compilation
2022-02-21 11:59:29 +00:00
Alexander Theißen a2280507eb canvas: Add sudo (#1010) 2022-02-21 11:45:43 +00:00
Squirrel d1a5414b59 Remove migrations that have been executed. (#986) 2022-02-21 11:25:54 +00:00
Alexander Theißen 1918632332 Bump state version (#1009) 2022-02-21 10:57:56 +00:00
Bastian Köcher 53c0ec904f Fix relay chain node name (#1008)
Before this fix the relay chain node name was always a random generated, because we did not had
implemented all the required methods of the `CliConfiguration` trait.
2022-02-21 11:34:23 +01:00
Alexander Theißen 5e80975d1b Move Canvas xcm config to own module (#994) 2022-02-21 08:14:18 +00:00
vincent 431c8df086 Fix parachain-template-runtime build fail (#996)
sync solution from #887
2022-02-20 12:17:10 +01:00
Alexander Theißen 230978b683 Add canvas-kusama runtime (#980)
* Added kanvas runtime

* Fix up benchmarking

* Fixup markdown stucture

* replace :emoji_name: by utf8
* fix up header hierarchy

* Merge canvas README

* Only use "Canvas" as a name

* Remove reference to Rocanvas
2022-02-17 16:18:48 -05:00
Shawn Tabrizi 81e7db5bc8 Fix Runtime Benchmarks Feature Flag in Parachain Template (#991)
* Update Cargo.toml

* add checks to ci
2022-02-16 13:33:08 +01:00
Keith Yeung e141b72ec7 Update rand to v0.8.5 (#987)
* Update rand to v0.8.5

* Enable std_rng feature on rand

* Enable std_rng only when std is enabled

* Revert "Enable std_rng only when std is enabled"

This reverts commit 8fb3b72dbd6dc18bc19868b999b5b07cea4b7392.
2022-02-14 23:14:05 +00:00
Bastian Köcher af29f2da18 Update Polkadot & Substrate (#985) 2022-02-14 11:16:41 +01:00
Keith Yeung 18af89c601 Move XCM configurations out into its own module (#981)
* Move XCM configurations out into its own module

* Revert removal of the AccountNonceApi
2022-02-11 15:59:48 -08:00
Squirrel b8eef1486c bump tx version (#966) (#975) 2022-02-10 16:19:16 +00:00
Squirrel 7a789ac2bc collective flip migration removed, uniques added (#965) (#974)
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-02-10 16:17:57 +00:00
Squirrel cc7116dde6 new weights for release-parachains-v7.0.0 (#951) (#973)
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
2022-02-10 16:16:31 +00:00
Squirrel 19f0be8e08 Set statemin runtime versions (#971) 2022-02-10 16:15:49 +00:00
Squirrel 51f9ec06e4 Bump collator version (#970)
Co-authored-by: Wilfried Kopp <wilfried@parity.io>
2022-02-10 16:12:33 +00:00
Mara Robin B 4500d91830 ci: fix bash quoting in docker ci (#978) 2022-02-10 13:26:22 +00:00
Bastian Köcher a66eac712a Update Substrate & Polkadot (#977) 2022-02-10 09:34:22 +01:00