Pierre Besson
46c27cca2e
add new rococo chainspec ( #3976 )
2021-10-01 08:57:44 +00:00
João Paulo Silva de Souza
38707ab454
bump async-std's version to remove conflict for substrate ( #3981 )
...
https://gitlab.parity.io/parity/substrate/-/jobs/1151852#L367
https://gitlab.parity.io/parity/substrate/-/jobs/1151852#L369
2021-10-01 10:22:15 +02:00
ucover
f8ce186496
Test each benchmark case in own #[test] ( #9860 )
...
* Generate one #[test] fn per bench case.
* Update benchmark macro syntax in frame pallets.
* Explain new benchmark macro syntax in example pallet.
* support with and without a semicolon
* update pallets to use individual tests
* migrate staking too
* migrate more pallets
* fix up democracy and use individual tests
* Fix comment
* Put println message in panic
* Remove `another_set_dummy` from doc
`another_set_dummy` is not present in the benchmarking.rs (anymore).
* Update doc for benchmarks macro
* Update doc for impl_benchmark_test_suite macro
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 08:17:26 +00:00
Alexander Samusev
a31ab1fc37
Add build with docker section to README ( #9792 )
...
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-01 03:54:41 +00:00
Andronik Ordian
672ee582e0
gossip-support: set last_session_index earlier ( #3978 )
...
* gossip-support: set last_session_index earlier
* gossip-support: issue_connection_request never fails
* fmt
2021-09-30 17:04:37 -05:00
Shawn Tabrizi
54617ef661
Simple Trait to Inspect Metadata ( #9893 )
...
* simple trait to inspect metadata
* import vec
2021-09-30 16:46:48 +00:00
Vincent Geddes
653f299b95
Pallet Assets: Create new asset classes from genesis config ( #9742 )
...
* Pallet Assets: Allow creating asset classes from genesis config
* Add accounts and metadata to genesis config
* whitespace fixes
* Update more chainspecs
* Run rustfmt over code
* More formatting fixes
* Update frame/assets/src/lib.rs
Improve error message
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/assets/src/lib.rs
Improve error message
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-30 16:32:29 +00:00
Denis Pisarev
74475e602b
doc: subkey usage ( #9905 )
...
* CI: md styling
* CI: add container usage
2021-09-30 17:12:28 +02:00
Robert Klotzner
aa311c3734
Silence alert about large-statement-fetcher ( #9882 )
...
* Silence alert about large-statement-fetcher
That task is not continuous and behaving exactly as desired.
* Get rid of rule completely
- Pierre thinks it does not add any value
- Basti rightly complains that Polkadot specific exceptions make little
sense in the Substrate repo.
2021-09-30 16:42:08 +02:00
zjb0807
fb9656489a
Companion for substrate PR#9890 ( #3961 )
...
* add on_initialize_base_with_launch_period
* trigger GitHub actions
* cargo update -p sp-io
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-30 14:08:46 +00:00
zjb0807
fc4c67161b
Fix democracy on-initialize weight ( #9890 )
...
* fix democracy on-initialize weight
* fix tests
* add base weight on LaunchPeriod
* fix fmt check
* trigger GitHub actions
* trigger GitHub actions
* update weights
2021-09-30 13:22:54 +00:00
Bastian Köcher
a58b5a947f
Fix basic authorship flaky test ( #9906 )
...
The test is flaky because sometimes we hit the 9 seconds deadline when
the CI was probably on high load. To "solve" this we just use an huge
deadline that should never be triggered. The deadline isn't required anyway.
2021-09-30 14:58:28 +02:00
Martin Pugh
72eab56e88
Bump version, tx_version and spec_version in prep for v0.9.11 ( #3970 )
...
* bump version and spec_version
* bump transaction version
* Bump of the default value in CI
* bump tx version for westend and kusama
Co-authored-by: Wilfried Kopp <wilfried@parity.io >
2021-09-30 14:44:19 +02:00
Bastian Köcher
24f8cd72cf
Remove a where bound that isn't required anymore ( #633 )
2021-09-30 14:36:25 +02:00
Bastian Köcher
c3a8d35d1b
Fix master compilation ( #3977 )
2021-09-30 12:16:42 +00:00
Chevdor
978f15118d
Add extrincic ordering check to CI ( #629 )
...
* Add extrincic ordering check to CI
* Add missing script
* Fix default chain
* Ignore issues with pkill
* Continue on error while trying to stop the node
* Set embedded relay chain node
* Fix formatting
2021-09-30 10:26:19 +02:00
Andrew Jones
e0742bcd6d
contracts: Add event field names ( #9896 )
...
* Add struct variant fields to contract Event
* Update comments and usages
* Fmt
2021-09-30 08:12:25 +00:00
Dan Shields
817d0d26d5
subkey readme update on install ( #9900 )
...
Instructions are more detailed on devhub, ported to the README.
2021-09-30 03:54:45 +00:00
Keith Yeung
819849f097
Make most XCM APIs accept an Into<MultiLocation> where MultiLocation is accepted ( #3627 )
...
* Change send_xcm MultiLocation argument to be generic
* Change pallet_xcm::send_xcm MultiLocation and Junctions argument to be generic
* Change convert_origin MultiLocation argument to be generic
* Change OnResponse MultiLocation arguments to be generic
* Change UniversalWeigher MultiLocation argumente to be generic
* Change ExecuteXcm MultiLocation argument to be generic
* Remove usages of into for the MultiLocation argument in execute_xcm
* Make use of generic MultiLocation arguments in rustdocs
* Cargo fmt
* Remove unused import in tests
* Resolve conflicts
* cargo fmt
* Appease spellcheck
* impl Into<MultiLocation> in more places
2021-09-29 23:24:49 +00:00
Andronik Ordian
7542a73f12
fix disputes tests ( #3974 )
2021-09-29 23:23:04 +02:00
Robert Habermeier
b6a87891ac
Drop availability only for candidates that lose disputes ( #3973 )
...
* guide: updates for disputes changes
* paras_inherent: drop availability only for candidates that lose disputes
* spellcheck
* Update runtime/parachains/src/paras_inherent.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-29 20:33:16 +00:00
Éloïs
6898e8416b
add feature wasmtime-jitdump ( #9871 )
...
* add feature wasmtime-jitdump
* remove unwrap
* always enable wasmtime/jitdump feature
* env WASMTIME_PROFILING_STRATEGY: retun an error for unknown value
* Add doc for env var WASMTIME_PROFILING_STRATEGY
* Update client/executor/wasmtime/Cargo.toml
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
* warning instead of error
* Update client/executor/wasmtime/src/runtime.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* update doc: unknown value cause warning instead of error
* log warning only once
* static right next to the usage
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-29 22:10:12 +02:00
Andronik Ordian
f66440dc19
revert +1 change to be on the safer side ( #3972 )
2021-09-29 19:24:12 +00:00
Andronik Ordian
019d4e3b99
paras_inherent: reject only candidates with concluded disputes ( #3969 )
...
* paras_inherent: reject only candidates with concluded disputes
* remove unused Error variant
2021-09-29 13:58:04 -05:00
Bernhard Schuster
3c8e8637ff
feat: measured oneshots ( #3902 )
...
* overseer: remove mut in connector
* monitored oneshots
* fmt
* remove debug log
* Update node/metered-channel/src/oneshot.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/metered-channel/src/oneshot.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* avoid two Arcs
* add expects
* alt impl
* rework the measured oneshots
* address review comments, use `Measurable` where possible
* chore/tracing: move `PrettyAuthorities` construction out of tracing macros
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-29 16:06:20 +00:00
Bernhard Schuster
c57a1e7934
remove AllSubsystems and AllSubsystemsGen types ( #3874 )
...
* introduce the OverseerConnector, use it
* introduce is_relay_chain to RelayChainSelection
* Update node/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* avoid the deferred setting of `is_relay_chain` in `RelayChainSelection`
* positive assertion is not mandated, only the negative one, to avoid a stall
* cleanup: overseer residue
* spellcheck
* fixin
* groundwork to obsolete Overseer::new and AllSubsystemsGen proc-macro
* Now all malus & tests can be ported to the builder pattern.
Obsoletes `Overseer::new`, `AllSubsystemsGen` derive macro, `AllSubsystems`.
* spellcheck
* adjust tests, minor fixes
* remove derive macro AllSubsystemsGen
* add forgotten file dummy.rs
* remove residue
* good news everyone!
* spellcheck
* address review comments
* fixup imports
* make it conditional
* fixup docs
* reduce import
* chore: fmt
* chore: fmt
* chore: spellcheck / nlprules
* fixup malus variant-a
* fmt
* fix
* fixins
* pfmt
* fixins
* chore: fmt
* remove expanded overseer generation
* tracing version
* Update node/network/statement-distribution/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* use future::ready instead
* silence warning
* chore: fmt
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-09-29 14:24:56 +00:00
Liu-Cheng Xu
f9de0040c9
Companion for Substrate#9867 ( #3938 )
...
* Companion for Substrate#9867
* Fix finality_target_with_fallback()
* update substrate
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-09-29 14:16:50 +00:00
Bastian Köcher
c752b5d61b
Substrate Companion for #9552 ( #3834 )
...
* Prepare for wasmtime 0.29
* update Substrate
* Use Pallet
Co-authored-by: parity-processbot <>
2021-09-29 13:29:33 +00:00
Liu-Cheng Xu
802afa9f22
Return target_hash for finality_target instead of an Option ( #9867 )
...
* .
cargo +nightly fmt --all
* Fix test
* Simplify test
* They are already imported
* Needless clone()
2021-09-29 13:03:09 +00:00
Bastian Köcher
2deed49706
Update wasmtime to 0.29.0 ( #9552 )
...
* Start
* Move to ctx
* Make it compile for now
* More work
* Get rid off state-holder
* Use less Refcells
* 🤦
* Don't use RefCell
* Use names for parameters
* Fixes after merge
* Fixes after merge
* Review feedback
* FMT
2021-09-29 12:30:46 +00:00
Andronik Ordian
d19b1de5f0
CI: run disputes tests ( #3962 )
...
* CI: run disputes tests
* Revert "minor chore changes (#3944 )"
This reverts commit d64394ef59 .
* fix em
* Revert "Revert "minor chore changes (#3944 )""
This reverts commit 02a1ecf3cacb52d6dd467e8f226a69bae651d319.
* Update handle_import_statement function
* fmt
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2021-09-29 11:19:00 +00:00
Squirrel
e64693933f
Less sleeps ( #9848 )
...
* Less sleeps
* No need to use tokio-test crate
* Less sleep
* Avoid leaving zombie substrates around
(when panicing in tests)
* Remove unused imports
* Incorporating feedback
* rename method
* Use rpc_api
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/node/cli/tests/temp_base_path_works.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-29 10:55:31 +00:00
Guillaume Thiolliere
f71d87ad28
remove unidiomatic ( #9895 )
2021-09-29 12:44:04 +02:00
dependabot[bot]
c0719034a1
Bump parity-scale-codec from 2.3.0 to 2.3.1 ( #3959 )
...
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/parity-scale-codec-v2.3.0...parity-scale-codec-v2.3.1 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
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>
2021-09-29 11:57:24 +02:00
dependabot[bot]
9605a6db3a
Bump smallvec from 1.6.1 to 1.7.0 ( #9894 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: smallvec
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>
2021-09-29 09:54:10 +00:00
Andronik Ordian
cb89dfc039
approval-voting: populate session cache in advance ( #3954 )
...
* try populating session cache in advance
* remove unused arg
* fmt
* fix compilation
* fix tests
* Revert "fix tests"
This reverts commit e8222b1108e09a39727a38e3b4e4c3061642a213.
* fix tests
* bump dispute window const by 1
* fix tests
2021-09-29 09:53:44 +00:00
dependabot[bot]
559faf1c61
Bump async-std from 1.9.0 to 1.10.0 ( #9759 )
...
Bumps [async-std](https://github.com/async-rs/async-std ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/async-rs/async-std/releases )
- [Changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-rs/async-std/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: async-std
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>
2021-09-29 10:53:15 +02:00
Guillaume Thiolliere
8684b73b46
Fix WrapperOpaque max encded len and type info ( #9881 )
...
* fix wrapper opaque
* fix compilation
* improve more precise implementation
* spacing
* fmt
2021-09-29 07:48:26 +00:00
Bastian Köcher
89a85936e5
Fix flaky sync tests ( #9889 )
2021-09-29 09:10:20 +02:00
dependabot[bot]
4549e1a1b0
Bump libc from 0.2.102 to 0.2.103 ( #3950 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.102 to 0.2.103.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.102...0.2.103 )
---
updated-dependencies:
- dependency-name: libc
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>
2021-09-28 23:18:51 +02:00
Guillaume Thiolliere
77ad54e4bc
fix master ( #3955 )
2021-09-28 17:38:00 +00:00
Alexander Samusev
f29b6db6e4
Docker files chore ( #3880 )
...
* Renamed staking-miner Dockerfiles
* change readme stacking-miner
* mv docker/ to scripts/docker/polkadot
* renamed dockerfiles in scripts/docker
* renamed Dockerfiles
* Update scripts/docker/staking-miner/staking_miner_injected.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* renamed release.Dockerfile
* renamed staking-miner dockerfiles
* add label polkadot_builder.Dockerfile
* Update scripts/docker/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/polkadot_injected_release.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/collator_injected.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/staking-miner/staking-miner_injected.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/staking-miner/staking-miner_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/staking-miner/staking-miner_builder.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* Update scripts/docker/staking-miner/staking-miner_injected.Dockerfile
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* move gpg server as variable to GHA config
* simplified polkadot_builder.Dockerfile
* gitlab-ci modify cp command in test-build-linux-stable
* fix tests
* renamed scripts/docker to scripts/dockerfiles
* fix spellcheck
* fix spellcheck
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
2021-09-28 17:47:52 +02:00
dependabot[bot]
ab7f87a81a
Bump nix from 0.19.1 to 0.20.0 ( #3587 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.19.1 to 0.20.0.
- [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.19.1...v0.20.0 )
---
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>
2021-09-28 15:47:10 +02:00
Bernhard Schuster
c9662531b6
remove connected disconnected state, 3rd attempt ( #3898 )
...
* overseer: remove mut in connector
* rename SelectRelayChainWFallback -> SelectRelayChain
* split Basics
* introduce the OverseerConnector, use it
* introduce is_relay_chain to RelayChainSelection
* chore: rename var
* avoid dummy import in subsystem
* actually remove Disconnecte/Connected enum
* extract DummySubsystem into mod dummy.
* Handle::Connected -> Handle::new
* chore: fmt
* fix test
* select relay chain takes no arg, simplification
* fmt
* Update node/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* chore: improve malus tests
* avoid the deferred setting of `is_relay_chain` in `RelayChainSelection`
* positive assertion is not mandated, only the negative one, to avoid a stall
* chore: fmt
* assure the `RelayChainSelection` is not used before the overseer is up and running
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-28 15:01:04 +02:00
Keith Yeung
7b65b049cb
Extend PalletInfoAccess with module_name and crate_version method ( #9690 )
...
* Record pallet indices in CallMetadata
* Resurrect PalletVersion infrastructure and rename as CrateVersion
* cargo fmt
* Add missing runtime generics to pallet struct
* Fix path to instance
* Fix test
* Fix UI test expectations
* Fix UI test expectations
* Move crate_version function to PalletInfoAccess
* Update UI test expectations
* Add crate_name method to PalletInfo
* Convert path to module name instead of exposing crate name
* cargo fmt
* Keep the double colons when constructing the module name
* Remove unused import
* Update UI test expectations
* Update frame/support/src/traits/metadata.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update UI test expectations
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-09-28 11:35:33 +02:00
Robert Habermeier
408b49268f
fix flaky chain-selection tests ( #3948 )
2021-09-28 08:43:55 +00:00
Gautham
951a033e8d
Add Polkadex to SS58 Registry ( #9825 )
...
* Add PDEX to SS58 Registry.
* Add PDEX to SS58 Registry.
2021-09-28 06:10:40 +00:00
Keith Yeung
7da1421baa
Add benchmarking for parachain runtime initializer pallet ( #3913 )
...
* Add benchmarking for parachain runtime initializer pallet
* Fix default impl for initializer pallet WeightInfo
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
* Use real weights and use max_block as default weight
* Add variable for digest vec length for initializer benchmark
* Fix compilation errors
* Add WeightInfo to parachains_initializer config in polkadot runtime
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_initializer.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs
* Appease spellchecker
* Use kusama weights in polkadot runtime for parachain initializer pallet
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-28 04:55:19 +00:00
Squirrel
f95408b346
Point to nightly that can compile the code. ( #9873 )
2021-09-28 04:47:38 +00:00
Qinxuan Chen
7f550d6dd2
Migrate pallet-session to the new pallet macro ( #9796 )
...
* Migrate pallet-session to the new pallet macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove old macros
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-09-28 03:12:57 +00:00