Bernhard Schuster
6ea55caa85
overseer: simplify debugging some more ( #4053 )
...
* overseer: simplify debugging some more
* chore: undo gitignore change
2021-10-11 16:59:45 +00:00
dependabot[bot]
e017422166
Bump thiserror from 1.0.29 to 1.0.30 ( #4048 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...1.0.30 )
---
updated-dependencies:
- dependency-name: thiserror
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-10-11 10:17:23 +00:00
dependabot[bot]
0207f89345
Bump strum from 0.21.0 to 0.22.0 ( #4047 )
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
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-10-11 09:37:27 +00:00
Zeke Mostov
ed00ebf279
Add para pallets to polkadot benchmarks ( #4045 )
...
* Add para pallets to polkadot benchmarks
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_configuration.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_initializer.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-10-11 04:02:38 +00:00
Alan Sapede
e51c1e68d5
Fixes broken docker link in docker descriptiob ( #4043 )
2021-10-08 20:43:08 +00:00
dependabot[bot]
a04a9d9d92
Bump trybuild from 1.0.48 to 1.0.49 ( #4039 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.48...1.0.49 )
---
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-10-08 17:43:16 +00:00
Andronik Ordian
47202727cf
validator-discovery: don't remove multiaddr of requested PeerIds ( #4036 )
...
* validator-discovery: remove from peer set before inserting
* bump spec versions
* rework into a companion
* fmt
* fix
* fix
* one more time
* one more try
* one more try
* Revert "one more try"
This reverts commit ab6568d3b828a33dc06f5650037597fc88dd06b1.
* one more try
* one more try
* Revert "one more try"
This reverts commit 8d7369f7b78633bd1b1c5ba3e0f2a0544bdd77a5.
* fix a warning
* fix another warn
* correct log
* fix compilation
* ffs
* less cloning
* Apply suggestions from code review
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* add comments and a small refactoring
* use set_reserved_peers
* cargo update -p sp-io
* rename added to num_peers
* update Substrate
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: parity-processbot <>
2021-10-08 16:12:57 +00:00
Bastian Köcher
53bc313f9d
Substrate companion for #9966 ( #4037 )
...
* Substrate companion for #9966
* Bump spec_versions
* Update Substrate
2021-10-08 17:29:16 +02:00
Bastian Köcher
da67fd9312
Bump spec_versions ( #4041 )
2021-10-08 16:31:25 +02:00
Sergejs Kostjucenko
f31eac6ec6
Remove bridges from checks ( #4040 )
...
* Remove bridges from check_line_width
* Remove bridges from spellcheck
2021-10-08 14:43:17 +03:00
Sergei Shulepov
d2e5c4bbc6
Polkadot: Remove configuration's runtime migration and just set StorageVersion ( #4035 )
...
* wip
* Remove unused members
2021-10-07 16:02:29 +00:00
Arkadiy Paronyan
8f838f2bde
Update for warp sync ( #3564 )
...
* Update for warp sync
* update Substrate
Co-authored-by: parity-processbot <>
2021-10-07 10:46:42 +00:00
dependabot[bot]
4582c7d92e
Bump trybuild from 1.0.45 to 1.0.48 ( #4031 )
...
Bumps [trybuild](https://github.com/dtolnay/trybuild ) from 1.0.45 to 1.0.48.
- [Release notes](https://github.com/dtolnay/trybuild/releases )
- [Commits](https://github.com/dtolnay/trybuild/compare/1.0.45...1.0.48 )
---
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-10-07 09:49:20 +00:00
Bernhard Schuster
30bdc8f5d4
collect included disputes from on-chain ( #3924 )
...
* dummy: impl another runtime API
* query the on chain disputes, and inform self
* make use of the refactor
* minro
* SPLIT ME
* write dispute values
* wip
* impl for all runtimes
* chore: fmt
* [] -> get
* fixup mock runtime
* fixup
* fixup discovery for overseer init
* chore: fmt
* spellcheck
* rename imported_on_chain_disputes -> on_chain_votes
* reduction
* make it mockable
* rename and refactor
* don't query on chain info if it's not needed
* yikes
* fmt
* fix test
* minimal fix for existing tests
* attempt to fetch the session info from the rolling window before falling back
* moved
* comments
* comments
* test for backing votes
* rename
* Update runtime/polkadot/src/lib.rs
* chore: spellcheck + dict
* chore: fmt
* fixup cache size
* add warning
* logging, rationale, less defense
* introduce new unchecked, that still checks in debug builds
* fix
* draft alt approach
* fix unused imports
* include the session
* Update node/core/dispute-coordinator/src/real/mod.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* provide where possible
* expand comment
* fixin
* fixup
* ValidityVote <-> ValidityAttestation <-> CompactStatement has a 1:1 representation
* mark TODO
* Update primitives/src/v1/mod.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* address review comments
* update docs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-10-06 19:16:23 +00:00
dependabot[bot]
561219eef6
Bump tracing from 0.1.28 to 0.1.29 ( #4023 )
...
Bumps [tracing](https://github.com/tokio-rs/tracing ) from 0.1.28 to 0.1.29.
- [Release notes](https://github.com/tokio-rs/tracing/releases )
- [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.28...tracing-0.1.29 )
---
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>
2021-10-06 17:52:24 +00:00
André Silva
9bdded5fe4
Companion for substrate#9448 ( #3527 )
...
* Companion for substrate#9448
* fix on_disabled
* use temporary beefy branch
* revert beefy updates
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-10-06 17:06:53 +00:00
Robert Klotzner
57a99c960f
Silence some alerts due to overly verbose warnings. ( #3946 )
...
* statement-distribution: Only warn on relevant stuff.
* Silence warnings in availability-distribution.
* Demote more warnings.
* More consistency.
* info -> debug
2021-10-06 17:00:51 +00:00
Kian Paimani
7f3cfa124e
Re-configure offchain repeat frequency for elections ( #3966 )
2021-10-06 15:51:47 +00:00
Falco Hirschenberger
4b9fc6460e
Add call-decoding weight to benchmarks ( #3866 )
...
* Add add call-decoding weight to benchmarks
fixes #3864
* Change order as suggested by @thiolliere
* More reordering as @KiChjang suggested
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_claims.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_claims.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-10-06 10:15:19 +00:00
dependabot[bot]
57125623ed
Bump syn from 1.0.78 to 1.0.80 ( #4025 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.78 to 1.0.80.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.78...1.0.80 )
---
updated-dependencies:
- dependency-name: syn
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-10-06 10:04:00 +00:00
Zeke Mostov
dc38cf8959
Add benchmarking to rococo; Remove weights from runtime_parachains ( #3914 )
...
* Add benchmarking to rococo; Remove weights from runtime_parachains
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
* Impl TestWeightInfo for Paras and Configuration
* fmt
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_configuration.rs --header=./file_header.txt
* Fix CI complaint: error: unused variable: `c`
* polkadot-runtime-common & polkadot-test-runtime compile
* xcm-simulator compile
* change TestWeightInfo to max_block
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
* ordering
* cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt
* Replace max_block with Weight::MAX
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-10-06 09:38:29 +00:00
dependabot[bot]
2635cc4431
Bump lru from 0.6.6 to 0.7.0 ( #4012 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.6 to 0.7.0.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.6.6...0.7.0 )
---
updated-dependencies:
- dependency-name: lru
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-10-06 11:06:12 +02:00
Shawn Tabrizi
bc7326383d
individual benchmark tests ( #4018 )
2021-10-05 15:53:20 -04:00
Shawn Tabrizi
d6d37621b0
Allow an Offset to Lease Periods ( #3980 )
...
* add slot offset for slots
* trying things out
* fix test
* improve api to return the first block of a new lease period
* add an integration test with offset
* de-duplicate test
* hide lease period_period_length from public api
* fix benchmarks
* Update runtime/common/src/slots.rs
* support the exact same range of crowdloans
* fix docs
* fix docs again
* introduce offset to runtimes
* fix and check edge case w/ offset and lease period first block
* remove newline
* turn into an option
* fix benchmarks
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-10-05 09:07:47 -05:00
dependabot[bot]
fcadf0ecc5
Bump quote from 1.0.9 to 1.0.10 ( #4013 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: quote
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-10-05 09:49:59 +00:00
Tomasz Drwięga
9dfef89bab
Companion for #9834 (Transaction Priority) ( #3901 )
...
* Add new associated type.
* Update fee multiplier.
* Bump Substrate
2021-10-04 18:13:35 +00:00
Chevdor
6226737f5c
chore: update builder image ( #3884 )
...
* chore: update `builder` image
fix #9765
* fix: fix binary path
* chore: refresh of the builder image + build script
* Fix port
* Fix image source
* Update scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-04 18:09:19 +02:00
Robert Habermeier
a1bf894d79
Free disputed cores before processing bitfields ( #4008 )
...
* guide: extract free_cores in scheduler
* scheduler: extract free cores to a separate function
* guide: remove disputed cores from scheduler first
* free disputed cores in scheduler before processing bitfields
* spellcheck is mostly right but sometimes stupid
* add comment and fmt
2021-10-04 15:02:31 +00:00
Robert Habermeier
6002865874
Make candidate validation timeouts configurable ( #4001 )
...
* pvf: make execution timeout configurable
* guide: add timeouts to candidate validation params
* add timeouts to candidate validation messages
* fmt
* port backing to use the backing pvf timeout
* port approval-voting to use the execution timeout
* port dispute participation to use the correct timeout
* fmt
* address grumbles & test failure
2021-10-04 09:53:36 -05:00
Chevdor
114e757988
Add extrinsic ordering filtering ( #3631 )
2021-10-04 16:06:26 +02:00
Bernhard Schuster
462bbc94b4
chore: ci list files that spellcheck finds ( #3992 )
...
* chore: ci list files that spellcheck finds
Avoid -r flag for false positives
* avoid master
* improve
2021-10-04 12:36:54 +00:00
Robert Habermeier
bd734ff61b
Use background tasks properly in candidate-validation ( #4002 )
...
* refactor: candidate-validation background tasks
* fix tests
* fmt
2021-10-04 07:25:17 -05:00
Bastian Köcher
dc13782f9d
Fix unoccupied bitfields ( #4004 )
...
* Fix unoccupied bitfields
If there is an unoccupied bitfield set, we should just ignore it and not
keep it for the rest of the logic in `process_bitfields`.
* Bring back test, but this time corrected
* Remove incorrect code
2021-10-04 11:14:03 +00:00
dependabot[bot]
cd4beed7d8
Bump syn from 1.0.77 to 1.0.78 ( #4006 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.77 to 1.0.78.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.77...1.0.78 )
---
updated-dependencies:
- dependency-name: syn
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-10-04 11:54:09 +02:00
dependabot[bot]
d676587a3a
Bump jsonrpsee-ws-client from 0.3.0 to 0.3.1 ( #3931 )
...
Bumps [jsonrpsee-ws-client](https://github.com/paritytech/jsonrpsee ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/paritytech/jsonrpsee/releases )
- [Changelog](https://github.com/paritytech/jsonrpsee/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/jsonrpsee/compare/v0.3.0...v0.3.1 )
---
updated-dependencies:
- dependency-name: jsonrpsee-ws-client
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-10-03 23:11:24 +02:00
Robert Habermeier
a19ef45e5e
fix clock drift for assignments issued before the block ( #3851 )
...
* fix clock drift for assignments issued before the block
* always broadcast tranche 0 assignments
* Update tests
* Change from min to max
* Remove erronious print statement
* guide: require fixed approval delay
* prevent approval by very recent assignments
* fix approval-checking tests
* fix main approval tests
* Fix tests
* Fix looked over test
* fix test
Co-authored-by: Lldenaurois <Ljdenaurois@gmail.com >
2021-10-03 14:41:06 -05:00
Robert Habermeier
6d83b59944
Remove unoccupied bit check ( #3999 )
...
* remove the check for unoccupied bitfields
* bump rococo version
* fix warning about occupied bitmask
2021-10-03 16:28:02 +00:00
Robert Habermeier
ec180fec9e
bump substrate ( #4000 )
2021-10-03 16:20:39 +00:00
Andronik Ordian
fe8bba1e9a
change genesis authority set for wococo-local, revert rococo-local ( #3998 )
2021-10-03 06:26:32 -05:00
Robert Habermeier
385d082d95
ignore irrelevant approvals in logs ( #3859 )
...
* ignore irrelevant approvals in logs
* fix
2021-10-03 13:10:24 +02:00
Bernhard Schuster
5a1dc74a9a
avoid expect, on free availability core ( #3994 )
...
* MVP fix
* bump spec version rococo
* fmt
* better var names
* remove duplicate desc
* expand comment
2021-10-03 06:09:53 -05:00
Robert Habermeier
c48b2f08ad
preserve finalized block in active leaves ( #3997 )
2021-10-02 19:01:53 +02:00
Andronik Ordian
679c51eb57
some tweaks to rococo-local ( #3996 )
...
* some tweaks to rococo-local
* rococo-local, not staging
2021-10-02 13:40:56 +00:00
Robert Habermeier
307a91f431
always broadcast tranche 0 assignments and add a delay before approval ( #3904 )
...
* always broadcast tranche 0 assignments
* guide: require fixed approval delay
* prevent approval by very recent assignments
* fix approval-checking tests
* fix main approval tests
2021-10-02 01:59:07 +02:00
Gavin Wood
3bab876bc1
Tidy up XCM errors in preparation for v2. ( #3988 )
...
* Tidy up XCM errors
* Tidy up errors
* Re-order
* Fixes
* Formatting
* map undefined errors
* add functor to dictionary
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-02 00:14:13 +02:00
Robert Habermeier
09cecc82de
add disputes call to Rococo ( #3993 )
2021-10-01 21:32:27 +00:00
Robert Habermeier
547d166f20
Fix an off-by-one: revert rather than revert-to ( #3991 )
...
* fix off-by-one in disputes reversion code
* bump Rococo spec version
2021-10-01 20:24:35 +00:00
Bernhard Schuster
44e9482596
add logs to relay chain selection ( #3990 )
...
* add logs to relay chain selection
* use tracing features
* more log
2021-10-01 19:46:47 +00:00
Andronik Ordian
9825eb9fb2
av-store: clean up StoreAvailableData message ( #3984 )
...
* av-store: clean up StoreAvailableData message
* fmt
* use named fields
2021-10-01 17:33:39 +00:00
radupopa2010
df184c8088
add polkadot-simnet runner ( #3985 )
2021-10-01 17:48:25 +03:00