Robert Klotzner
ffcde1e5e7
Fixes/improvements for disputes ( #3753 )
...
* More debugging output.
* Fix chain selection in case of disputes.
* Fix flaky test.
2021-09-01 14:25:56 -05:00
Squirrel
72adb1d858
Update contrib docs to reflect simplified process ( #9465 )
...
* Update contrib docs to reflect simplified process
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-01 17:58:53 +01:00
Bernhard Schuster
bff0ed532f
chore: test helper arbitrary ordering for 2 ( #3762 )
...
* chore: add arbitrary order macro for more resilient subsystem tests
* move to subsystem-test-helpers
2021-09-01 18:52:59 +02:00
Bernhard Schuster
b85586619f
disputes: fix relay chain selection sanity check ( #3750 )
...
* Fix off-by-one bug in approval voting and adjust tests
* Address feedback
* Remove default disputes
* Remove spaces
* cargo +nightly fmt
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-09-01 16:09:13 +00:00
Guillaume Thiolliere
16e4c8bc28
technical committee is using the weight of council, but should have its own generated weight instead ( #3511 )
...
* collectives have different weight
* fix path
* fix typo
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* add description for technical committee
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* use unique names
* makes compiling weights result
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective_council --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective_council --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/"
This reverts commit 690fdb65af58d5413fb16d4da82aff83977d3454.
* revert unique names
* cargo update -p sp-io
* fix
* cargo update -p sp-io
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_collective --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-01 13:37:14 +00:00
Shawn Tabrizi
62f3759351
new proxy for auctions, crowdloans, registrar, slots ( #3683 )
2021-08-31 14:33:57 +00:00
Chevdor
6c2d9566df
doc: subkey documentation ( #9639 )
...
* doc: convert the adoc to md
* add ref to UncheckedExtrinsic
* Add references to the SS58 format
* Add details about the inspect command
* removing command that is no longer available
* reorder display so ss58 representations show up next to each other
* remove deprecated section
* Add doc about the password option
* fix fmt
* minor fixes
fix #6613
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: David <dvdplm@gmail.com >
2021-08-31 15:24:37 +02:00
Guillaume Thiolliere
6c8946ae21
fix tracker repeat writes ( #9653 )
2021-08-31 12:41:44 +00:00
Nazar Mokrynskyi
2fa683da0e
Fix clippy warnings ( #9649 )
2021-08-31 04:13:41 +00:00
Alexander Theißen
9da28d87c4
Fix compilation issue of pallet_contracts ( #9652 )
2021-08-31 04:11:50 +00:00
dependabot[bot]
2755cf801f
Bump libc from 0.2.100 to 0.2.101 ( #3726 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.100 to 0.2.101.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.100...0.2.101 )
---
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-08-30 18:56:41 +00:00
Squirrel
80f8c5106e
Removed unneeded deps ( #3658 )
...
* Removed unneeded deps (except under bridge)
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-08-30 18:18:33 +01:00
dependabot[bot]
2c1e9da46c
Bump serde from 1.0.127 to 1.0.130 ( #3739 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.127 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.130 )
---
updated-dependencies:
- dependency-name: serde
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-08-30 13:42:07 +00:00
Qinxuan Chen
847d264c33
Add methods param for RPC state_traceBlock ( #9642 )
...
* Add methods param for RPC state_traceBlock
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* rename event_values_filter arg
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-30 11:52:26 +00:00
Georges
0b5117f818
Companion for Generate storage info for pallet authority_discovery #9428 ( #3517 )
...
* Fixing Polkadot after substrate changes
moving Vec to BoundedVec
* Removing changes to pallet aura
bumping bitflags version
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-30 06:49:10 +00:00
Georges
ac2468c47b
Generate storage info for pallet authority_discovery ( #9428 )
...
* Migrate Aura pallet to BoundedVec
Implementing issue #8629
* Fixed aura tests after BoundedVec change
* Moved Vec to BoundedVec in authority-discovery
* Merging into the main branch
* Added MaxEncodedLen to crypto
Need this without full_crypto to be able to add generate_store_info
* Add generate_store_info for aura
* Adding changes to Slot to add MaxEncodedLen
* Adding generate_store_info to authority discovery
* fmt
* removing panics in runtime if vec size too large
* authority-discovery: Remove panics in runtime
Can happen if vec size is too large, so truncate the vec in that case
* Adding logging when I truncate Vecs
* Got the sign the other way around
* Reverting pallet_aura changes
This is already being addressed by PR #9371
* Change BoundedVec to WeakBoundedVec
More robust implementation following @thiolliere recommendation.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-08-30 06:11:59 +00:00
Xiliang Chen
03c7b11244
improve decode for UncheckedExtrinsic ( #9646 )
...
* improve decode for UncheckedExtrinsic
* fmt
2021-08-29 06:43:50 +00:00
Gavin Wood
e3e6855490
Bump Tokio to 1.10 ( #592 )
...
* Bump Tokio to 1.10
* Missed one
2021-08-28 14:33:56 +00:00
Gavin Wood
9cc277834c
Companion for #3629 (XCM v2) ( #571 )
...
* Update .gitignore and bring into line with XCM v2's SendError
* type
* Some work
* Weighed responses
* extra fields to xcm pallet
* Fixes
* Bump
2021-08-28 15:51:49 +02:00
Keith Yeung
64cbeab3b3
Return a Result in invert_location ( #3730 )
...
* Return a Result in invert_location
* Add invertible to spellcheck dictionary
* Fix Some -> Ok
2021-08-28 02:17:51 +02:00
Gavin Wood
636d0b030f
XCM: Allow reclaim of assets dropped from holding ( #3727 )
...
* XCM: Introduce AssetTrap
* Revert reversions
* Remove attempts at weighing and add test
* Less storage use for asset trapping
* Add missing file
* Fixes
* Fixes
* Formatting
* Fixes
* Docs
* Filter types to allow runtimes to dictate which assets/origins should be trapped
* Formatting
* Tests
* Formatting
* Fixes
* Docs
2021-08-28 02:09:36 +02:00
Robert Klotzner
e56efb82d9
Further improved availability recovery ( #3711 )
...
* WiP.
* Things compile.
* cargo fmt
* Passing tests + fix warnings.
* Metrics for availability recovery.
* Basic test.
* Fix typos and actually check for overflow.
* cargo fmt
* Register metrics.
* More tests.
* Fix warning.
* cargo +nightly fmt
* Fix metrics
* Get rid of unsafe.
* tabify
* spellcheck
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-08-27 18:59:23 +02:00
Lldenaurois
353cfc8e37
node/service: Update finality target to fix disputes tests ( #3732 )
2021-08-27 11:59:09 -04:00
Guillaume Thiolliere
a44527b288
Fix benchmark writer ( #9626 )
...
* fix benchmark writer
* update doc to show the more general implementation
2021-08-27 13:43:01 +00:00
Guillaume Thiolliere
10268c5b76
fix perthing add ( #9638 )
2021-08-27 13:07:26 +00:00
Chevdor
47c75122d1
staking-miner: remove need of a file to pass the seed ( #3680 )
...
* staking-miner: remove need of a file to pass the seed
* cleanup
* linting round
* fix linting
* fix naming and remove unused field
2021-08-27 11:29:17 +02:00
Qinxuan Chen
a636b7a512
rpc-api: use thiserror instead of derive_more for error handling ( #9631 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-27 07:50:36 +02:00
Karel L. Kubat
328cfbe633
implement Add, Sub, CheckedAdd, CheckedSub, SaturatingAdd, Saturating… ( #9594 )
...
* implement Add, Sub, CheckedAdd, CheckedSub, SaturatingAdd, SaturatingSub for Perthings
* ifx inner >= max bug
* move arithmetic impl to main macro block
* implement CheckedMul for Perthings
* incorporate feedback
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-08-27 01:44:39 +00:00
Joshy Orndorff
bc47cfeefb
remove crate visibility limitation ( #9565 )
2021-08-26 16:24:14 +00:00
Shawn Tabrizi
07301bd693
Companion for 9619 (Private Events) ( #3712 )
...
* update runtime api
* use storage_prefix
* update read_events_no_consensus
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-26 14:34:45 +00:00
Shawn Tabrizi
2c91f3a464
Make System Events Private from the Runtime ( #9619 )
...
* make events private
* "i know what i am doing"
* feedback
2021-08-26 13:55:41 +00:00
ferrell-code
1d7e0e6b35
Fix Try-Runtime ( #3725 )
...
* compile try-runtime
* cargo fmt lol
2021-08-26 13:36:07 +02:00
Gavin Wood
8b80b283d4
XCM v2: Scripting, Query responses, Exception handling and Error reporting ( #3629 )
...
* Intoduce XCM v2
Also some minor fix for v0/v1
* Minor version cleanup
* Minor version cleanup
* Introduce SendError for XcmSend trait to avoid cycles with having Outcome in Xcm
* comment
* Corrent type
* Docs
* Fix build
* Fixes
* Introduce the basic impl
* Docs
* Add function
* Basic implementation
* Weighed responses and on_report
* Make XCM more script-like
* Remove BuyExecution::orders
* Fixes
* Fixes
* Fixes
* Formatting
* Initial draft and make pallet-xcm build
* fix XCM tests
* Formatting
* Fixes
* Formatting
* spelling
* Fixes
* Fixes
* spelling
* tests for translation
* extra fields to XCM pallet
* Formatting
* Fixes
* spelling
* first integration test
* Another integration test
* Formatting
* fix tests
* all tests
* Fixes
* Fixes
* Formatting
* Fixes
* Fixes
* Formatting
* Bump
* Remove unneeded structuring
* add instruction
* Fixes
* spelling
* Fixes
* Fixes
* Formatting
* Fixes
* Fixes
* Formatting
* Introduce and use VersionedResponse
* Introduce versioning to dispatchables' params
* Fixes
* Formatting
* Rest of merge
* more work
* Formatting
* Basic logic
* Fixes
* Fixes
* Add test
* Fixes
* Formatting
* Fixes
* Fixes
* Fixes
* Nits
* Simplify
* Spelling
* Formatting
* Return weight of unexecuted instructions in case of error as surplus
* Formatting
* Fixes
* Test for instruction count limiting
* Formatting
* Docs
2021-08-26 12:41:16 +02:00
dependabot[bot]
4193f05fa3
Bump async-trait from 0.1.50 to 0.1.51 ( #3721 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.50 to 0.1.51.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.50...0.1.51 )
---
updated-dependencies:
- dependency-name: async-trait
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-08-26 12:19:22 +02:00
Amar Singh
77489c3107
Improve errors for generate_solution_type macro ( #9553 )
...
* add more errors for check attributes in npos elections solution type
* revert local env
* return Ok false if there are no attributes
* fmt
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update primitives/npos-elections/solution-type/src/lib.rs
* improve span by giving extra attribute, nightly fmt
* fix test to test new error msg
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-08-26 01:32:25 +00:00
Guillaume Thiolliere
0f1896e7a2
improve doc of pallet macro ( #9625 )
...
* improve doc
* fmt
2021-08-26 01:14:09 +00:00
Ricardo Rius
cfa88fe9f2
Fix Statemint benchmarks ( #589 )
2021-08-26 01:02:02 +00:00
Andronik Ordian
93b58f1ee4
allow some overhead in MERKLE_NODE_MAX_SIZE ( #3724 )
...
* allow overhead in MERKLE_NODE_MAX_SIZE
* Update node/primitives/src/lib.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2021-08-25 21:42:07 +02:00
Shawn Tabrizi
7c3890c652
Expose storage_prefix logic, and remove duplicate code ( #9621 )
...
* expose storage prefix generation, remove duplicate code
* remove more duplicate code
* clean up import
* fix io test
* remove slicing
* Update frame/support/src/storage/mod.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-08-25 19:16:47 +00:00
Alexander Theißen
531fd70e22
Remove dependency on sandboxing host functions ( #9592 )
...
* Embed wasmi into the runtime
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-08-25 11:37:15 +00:00
Shaun Wang
a7e714aeb1
pallet-proxy: emit events on proxy added. ( #9546 )
...
* pallet-proxy: emit events on proxy added.
* Apply review suggestions.
2021-08-25 10:27:56 +00:00
dependabot[bot]
20d3f38726
Bump itertools from 0.10.0 to 0.10.1 ( #3719 )
...
Bumps [itertools](https://github.com/rust-itertools/itertools ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/rust-itertools/itertools/releases )
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.0...v0.10.1 )
---
updated-dependencies:
- dependency-name: itertools
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-08-25 11:54:35 +02:00
dependabot[bot]
3c1f3527d3
Bump tokio from 1.10.0 to 1.10.1 ( #3717 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.10.0...tokio-1.10.1 )
---
updated-dependencies:
- dependency-name: tokio
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-08-25 08:14:43 +00:00
dependabot[bot]
6dba325749
Bump trybuild from 1.0.43 to 1.0.45 ( #3713 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.43 to 1.0.45.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.43...1.0.45 )
---
updated-dependencies:
- dependency-name: trybuild
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-08-25 09:40:42 +02:00
Robert Klotzner
85897b5d36
Don't err on deactivated leaf during valiation. ( #3708 )
...
* Don't err on deactivated leaf during valiation.
* Fix error level + formatting of unrelated code.
2021-08-25 09:25:45 +02:00
Bastian Köcher
5a347adad2
Fix state_subscribeRuntimeVersion for parachains ( #9617 )
...
The old implementation was listening for storage changes and every time
a block changed the `CODE` storage field, it checked if the runtime
version changed. It used the best block to compare against the latest
known runtime version. It could happen that you processed the storage
notification of block Y and checked the runtime version of block X (the
current best block). This is also what happened on parachains.
Parachains import blocks and set the new best block in a later step.
This means we imported the block that changed the code, got notified and
checked the runtime version of the current best block (which would still
be the parent of the block that changed the runtime). As the parent did
not changed the runtime, the runtime version also did not changed and we
never notified the subscribers.
The new implementation now switches to listen for best imported blocks.
Every time we import a new best block, we check its runtime version
against the latest known runtime version. As we also send a notification
when the parachains sets a block as new best block, we will trigger this
code path correctly. It moves some computation from checking if the key
was modified to getting the runtime version. As fetching the runtime
version is a rather common pattern, it should not make any big
difference performancewise.
2021-08-25 09:13:00 +02:00
dependabot[bot]
9d707b8b7c
Bump libc from 0.2.99 to 0.2.100 ( #3703 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.99 to 0.2.100.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.99...0.2.100 )
---
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-08-24 23:45:52 +02:00
Lldenaurois
9b45483cb1
backing-availability-audit: Move ErasureChunk Proof to BoundedVec ( #3626 )
...
* backing-availability-audit: Move ErasureChunk Proof to BoundedVec
* WIP
* Touch up
* Fix spelling mistake
* Address Feedback
2021-08-24 12:50:33 -04:00
Bastian Köcher
ec86d1d119
Substrate Companion #9575 ( #3695 )
...
* Upgrade to tokio 1.10
* update Substrate
* Fmt
Co-authored-by: parity-processbot <>
2021-08-24 15:25:32 +00:00
Bastian Köcher
f92e5c5e65
Upgrade tokio to 1.10 ( #9575 )
...
* Upgrade tokio to 1.10
* Fix test runner
* Try fix it
* Update Cargo.lock
* Review feedback
* ahhhh
* FML
* FMT
* Fix tests
2021-08-24 14:31:19 +00:00