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
Bastian Köcher
e5cd5db383
Remove incorrect proof about Jemalloc ( #3982 )
...
* Remove incorrect proof about Jemalloc
The truth is that Jemalloc is not always the default allocator. This is
only true for the polkadot binary.
* Fmt
* Rephrase
2021-10-01 11:55:22 +02:00
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
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
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
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
c3a8d35d1b
Fix master compilation ( #3977 )
2021-09-30 12:16:42 +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
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
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
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
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]
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
Robert Habermeier
408b49268f
fix flaky chain-selection tests ( #3948 )
2021-09-28 08:43:55 +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
Bernhard Schuster
d64394ef59
minor chore changes ( #3944 )
...
* chore: mild refactor, avoid the channel in handle_import_statements
* chore/md: lint
2021-09-27 20:18:59 +02:00
Robert Habermeier
94986bec7e
disputes: reject single-sided disputes ( #3903 )
...
* disputes: reject single-sided disputes
* fmt
2021-09-27 12:16:34 -05:00
Robert Klotzner
7c3b3c4a59
Log info about low connectivity and unreachable validators ( #3916 )
...
* Attempt to add log stats to gossip-support.
* WIP: Keep track of connected validators.
* Clarify metric.
* WIP: Make gossip support report connectivity.
* WIP: Fixing tests.
* Fix network bridge + integrate in overseer.
* Consistent naming.
* Fix logic error
* cargo fmt
* Pretty logs.
* cargo fmt
* Use `Delay` to trigger periodic checks.
* fmt
* Fix warning for authority set size of 1.
* More correct ratio report if there are no resolved validators.
* Prettier rendering of empty set.
* Fix typo.
* Another typo.
* Don't check on every leaf update.
* Make compatible with older rustc.
* Fix tests.
* Demote warning.
2021-09-27 16:30:02 +02:00
Ayush Mishra
fdebbbf4b3
Added multisig in Rococo ( #3873 )
...
* Added multisig in Rococo
* removed formatting error
Co-authored-by: Ayush <>
2021-09-27 12:35:50 +00:00
Liu-Cheng Xu
7f2fab263b
Fix bin-substrate toml ( #3939 )
2021-09-27 06:05:06 +00:00