Robert Habermeier
709f990fb2
be more careful about fusing in select! ( #2052 )
2020-12-02 14:52:51 +01:00
Bastian Köcher
b13052de12
Use correct logging target for network bridge ( #2057 )
2020-12-02 13:00:23 +00:00
dependabot[bot]
26b8dbe120
Bump wasm-bindgen-futures from 0.4.18 to 0.4.19 ( #2054 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.18 to 0.4.19.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 08:54:36 +01:00
Robert Habermeier
996219d6ec
Update parachain registration script to new extrinsic ( #252 )
...
* Update parachain registration script to new extrinsic
* Update parachain registration script
2020-12-02 08:53:45 +01:00
Robert Habermeier
9071120de1
guide: Availability Recovery ( #2011 )
...
* expand description
* basics of availability recovery
* finish availability recovery
* fill out missing text
* Update roadmap/implementers-guide/src/node/availability/availability-recovery.md
Co-authored-by: Fedor Sakharov <fedor.sakharov@gmail.com >
* fix signal handling
Co-authored-by: Fedor Sakharov <fedor.sakharov@gmail.com >
2020-12-01 14:58:31 -05:00
André Silva
b737ebba6d
fork-tree: fix tree rebalancing ( #7616 )
...
* fork-tree: rebalance tree when inserting inner node
* fork-tree: fix tests for new rebalancing behavior
* fork-tree: fix node iterator initial state
* grandpa: fix tests
2020-12-01 18:49:09 +00:00
Fedor Sakharov
d5a39dffef
Cadidate selection check assignment ( #2042 )
...
* Cadidate selection check assignment
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Review fixes
* Punish collator for wrong announcements
* Update node/core/candidate-selection/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2020-12-01 13:43:00 -05:00
Tomasz Drwięga
6079fabdd3
Remove a stray file. ( #7649 )
2020-12-01 13:40:53 -05:00
Sergei Shulepov
f27b7acb8f
Update polkadot to the latest master ( #251 )
...
* update cumulus to latest polkadot
* s/Trait/Config
To be more consistent with the new naming.
* Update Cargo.lock
* fix network tests
2020-12-01 19:21:40 +01:00
Sergei Shulepov
917a5cce62
adder-collator cli flags ( #2051 )
...
* Accept --parachain-id in adder-collator
* adder-collator: Support a file chainspec
This change is to make it more similar to what we have in cumlus.
2020-12-01 19:20:20 +01:00
Benjamin Kampmann
e2b486cfb1
minor fix and improvements on localkeystore ( #7626 )
...
* minor fixes and improvements on localkeystore
* fixing tests
* update docs
2020-12-01 14:35:06 +00:00
Sergei Shulepov
e8c43576d4
execute_with_client: add 'static bound for Backend ( #2049 )
...
This is not a big change since the user definition AbstractClient already is 'static.
2020-12-01 14:22:24 +00:00
Andronik Ordian
e0016473a9
remove unused deps pulled by parity-util-mem ( #7635 )
...
* remove unused deps pulled by parity-util-mem
* fix a warning about unused Cargo key
2020-12-01 12:50:27 +00:00
dependabot[bot]
36c11201cc
Bump wasm-bindgen from 0.2.68 to 0.2.69 ( #2044 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.68 to 0.2.69.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.68...0.2.69 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 13:18:30 +01:00
jolestar
22a28db957
Fix cargo clippy warning in peerset. ( #7641 )
...
* Fix cargo clippy warning in peerset.
* Update client/peerset/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-12-01 10:58:00 +00:00
dependabot[bot]
9d961e2023
Bump structopt from 0.3.20 to 0.3.21 ( #2046 )
...
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.20 to 0.3.21.
- [Release notes](https://github.com/TeXitoi/structopt/releases )
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.20...v0.3.21 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 09:41:36 +01:00
Shawn Tabrizi
762b4b25d0
Fix CI Link Check ( #7639 )
...
* fix trigger fingers
* more
* Update frame/example-offchain-worker/README.md
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2020-11-30 22:01:18 +00:00
Robert Habermeier
414acdfc54
small improvements for parachains consensus ( #2040 )
...
* introduce a waiting period before selecting candidates and bitfields
* add network_bridge=debug tracing for rep
* change to 2.5s timeout in proposer
* pass timeout to proposer
* move timeout back to provisioner
* grumbles
* Update node/core/provisioner/src/lib.rs
* Fix nitpicks
* Fix bug
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <git@kchr.de >
2020-11-30 22:52:30 +01:00
Guillaume Thiolliere
15b0dece54
Renames of Trait to Config in README.md, weight templates and few minor ones ( #7636 )
...
* manual rename
* renamse in README.md
* fix template
2020-11-30 20:33:49 +00:00
Robert Habermeier
0f4395fc44
parachains runtime: configurable maximum validators per core ( #2043 )
...
* parachains runtime: configurable maximum validators per core
* update guide and add test
2020-11-30 20:18:02 +00:00
Pierre Krieger
8081c54428
Update Substrate again ( #2041 )
2020-11-30 19:26:44 +01:00
Pierre Krieger
35efc8e4b0
Fix bad state transition with DisabledPendingEnable+OpenDesiredByRemote ( #7638 )
2020-11-30 17:43:47 +00:00
Robert Habermeier
1008465413
Move candidate validation to the background ( #2028 )
...
* refactor some functions to not rely on `self`
* factor out common elements of seconding and attesting
* Add Spawn to backing FromJob
* do candidate validation in background
* tests
* address grumbles
2020-11-30 17:01:03 +00:00
Bastian Köcher
536dceb4f6
Simplify subsystem jobs ( #2037 )
...
* Simplify subsystem jobs
This pr simplifies the subsystem jobs interface. Instead of requiring an
extra message that is used to signal that a job should be ended, a job
now ends when the receiver returns `None`. Besides that it changes the
interface to enforce that messages to a job provide a relay parent.
* Drop ToJobTrait
* Remove FromJob
We always convert this message to FromJobCommand anyway.
2020-11-30 17:01:26 +01:00
Bernhard Schuster
4ccf6672b1
resolve unresolved error nits of #7617 ( #7631 )
...
* handle executor should_panic test better
* Revert "reduce should panic, due to extended error messages"
This reverts commit c0805940184a62cd9302603ad911c3591e70a60c.
* remove excessive constraints
* remove duplicate documentation messages for error variants
* reduce T: constraints to the abs minimum
* whoops
* fewer bounds again
Co-authored-by: Bernhard Schuster <bernhard@parity.io >
2020-11-30 16:53:33 +01:00
Guillaume Thiolliere
2d4aa3a42e
Companion: Rename pallet trait Trait to Config ( #2014 )
...
* rename Trait -> Config
* revert diener changes
* rename HostConfig to ActiveConfig as more meaningful
* fix merge
* "Update Substrate"
* cargo update -p sp-io
Co-authored-by: parity-processbot <>
2020-11-30 15:13:43 +00:00
Pierre Krieger
7df537fcdd
cargo update -p sp-io ( #2038 )
2020-11-30 14:47:23 +00:00
Guillaume Thiolliere
1cbfc9257f
Rename pallet trait Trait to Config ( #7599 )
...
* rename Trait to Config
* add test asserting using Trait is still valid.
* fix ui tests
2020-11-30 14:34:54 +00:00
Pierre Krieger
dd3c84c362
Fix wrong value put for pending_opening ( #7633 )
...
* Fix wrong value put for pending_opening
* Oops, didn't even try compiling it
2020-11-30 15:05:01 +01:00
Shawn Tabrizi
7753a2250f
sudo_as should return a result (#7620 )
2020-11-30 13:57:15 +01:00
dependabot[bot]
007254c957
Bump console_log from 0.1.2 to 0.2.0 ( #7623 )
...
Bumps [console_log](https://github.com/iamcodemaker/console_log ) from 0.1.2 to 0.2.0.
- [Release notes](https://github.com/iamcodemaker/console_log/releases )
- [Commits](https://github.com/iamcodemaker/console_log/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 13:51:54 +01:00
Pierre Krieger
a2b14d10fb
sc-network: Log outgoing notifications too ( #7624 )
...
* Log outgoing notifications too
* Update client/network/src/protocol/generic_proto/handler.rs
Co-authored-by: Max Inden <mail@max-inden.de >
Co-authored-by: Addie Wagenknecht <addie@nortd.com >
Co-authored-by: Max Inden <mail@max-inden.de >
2020-11-30 10:52:08 +00:00
Bastian Köcher
9ce186227c
Process runtime api requests in the background ( #2035 )
...
This pr changes how the runtime api subsystem processes runtime api
requests. Instead of answering all of them in the subsystem task and
thus, making all requests sequential, we now answer them in a background
task. This enables us to serve multiple requests at once.
2020-11-30 10:41:47 +00:00
dependabot[bot]
f2606dbd4b
Bump nix from 0.19.0 to 0.19.1 ( #2033 )
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.19.0 to 0.19.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.19.0...v0.19.1 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 10:08:36 +01:00
Andronik Ordian
bbb036e304
util: implement FusedStream for Jobs ( #2031 )
2020-11-28 23:14:37 +01:00
Robert Habermeier
d6307a4978
allow jobs to spawn sub-tasks ( #2030 )
...
* allow jobs to spawn sub-tasks
* fix fallout in subsytems
2020-11-28 15:12:43 -05:00
Robert Habermeier
0c84214814
change approval voting counting procedure ( #1972 )
...
* change approval voting counting procedure
* language
* Update roadmap/implementers-guide/src/node/approval/approval-voting.md
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* improve language
* time-shifting
* tweak time-shifting
* expand
* typo
* tweaks to ensure we always get woken up
* move timing check into `tranches_to_approve`
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2020-11-28 18:35:46 +00:00
Andrew Plaza
f6dc35284f
Change TRACING_SET to static ( #7607 )
...
* change TRACING_SET to static
* Update primitives/io/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* modify test with nested spans
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-11-28 09:40:24 +01:00
André Silva
96461be248
network: don't force send block announcements ( #7601 )
2020-11-27 22:37:38 +00:00
Andronik Ordian
f8181fa1f2
erasure-coding: do not panic on 1 validator ( #2022 )
...
* erasure-coding: do not panic on 1 validator
* tabify fuzz tests
* remove num_validators length check
* remove unused import
* move erasure_coding_fuzzer to fuzzer
* change the authors to admit (at) parity.io
* Apply suggestions from code review
Co-authored-by: Sergei Shulepov <sergei@parity.io >
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2020-11-27 16:49:00 -05:00
André Silva
700b40679c
proposer: guard all provisioner data work with timeout ( #2026 )
2020-11-27 19:39:22 +01:00
Bernhard Schuster
8c7d217091
chore/error: remove from str conversion and add deprecation notificat… ( #7472 )
...
* chore/error: remove from str conversion and add deprecation notifications
* fixup changes
* fix test looking for gone ::Msg variant
* another test fix
* one is duplicate, the other is not, so duplicates reported are n-1
* darn spaces
Co-authored-by: Andronik Ordian <write@reusable.software >
* remove pointless doc comments of error variants without any value
* low hanging fruits (for a tall person)
* moar error type variants
* avoid the storage modules for now
They are in need of a refactor, and the pain is rather large
removing all String error and DefaultError occurences.
* chore remove pointless error generic
* fix test for mocks, add a bunch of non_exhaustive
* max line width
* test fixes due to error changes
* fin
* error outputs... again
* undo stderr adjustments
* Update client/consensus/slots/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove closure clutter
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* more error types
* introduce ApiError
* extract Mock error
* ApiError refactor
* even more error types
* the last for now
* chore unused deps
* another extraction
* reduce should panic, due to extended error messages
* error test happiness
* shift error lines by one
* doc tests
* white space
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Into -> From
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove pointless codec
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* avoid pointless self import
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bernhard Schuster <bernhard@parity.io >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-11-27 18:37:53 +00:00
Robert Habermeier
0a79d663e4
Move erasure root out of candidate commitments and into descriptor ( #2010 )
...
* guide: move erasure-root to candidate descriptor
* primitives: move erasure root to descriptor
* guide: unify candidate commitments and validation outputs
* primitives: unify validation outputs and candidate commitments
* parachains-runtime: fix fallout
* runtimes: fix fallout
* collation generation: fix fallout
* fix stray reference in primitives
* fix fallout in node-primitives
* fix remaining fallout in collation generation
* fix fallout in candidate validation
* fix fallout in runtime API subsystem
* fix fallout in subsystem messages
* fix fallout in candidate backing
* fix fallout in availability distribution
* don't clone
* clone
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2020-11-27 16:39:42 +00:00
Bastian Köcher
6722a83ba6
Forward storage changes in manual seal ( #7614 )
...
This prevents nodes from executing the same block 2 times.
2020-11-27 17:36:58 +01:00
Benjamin Kampmann
07c173af63
Add Key Subcommand to node-template ( #7615 )
2020-11-27 16:54:45 +01:00
Roman Borschel
b4ee48ee18
Upgrade to libp2p-0.31. ( #7606 )
...
* Upgrade to libp2p-0.31.
* Address line width.
* Add generous incoming connection limit.
* Remove old noise configuration.
2020-11-27 14:29:18 +00:00
Bastian Köcher
4f97481da7
Remove RpcMetrics weirdness ( #7608 )
...
* Remove `RpcMetrics` weirdness
The metrics was returning an error when prometheus was not given. This
was a really weird setup, especially when compared to all other metrics
that just do nothing if there is no registry.
* Fix browser build
2020-11-27 10:24:34 +01:00
yaanhyy
4fba9df943
add module to features/std ( #2024 )
...
Co-authored-by: hongyuanyang <hongyuanyang@huobi.com >
2020-11-27 09:45:31 +01:00
dependabot[bot]
6af3283bc4
Bump directories from 2.0.2 to 3.0.1 ( #7609 )
...
Bumps [directories](https://github.com/soc/directories-rs ) from 2.0.2 to 3.0.1.
- [Release notes](https://github.com/soc/directories-rs/releases )
- [Commits](https://github.com/soc/directories-rs/commits )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-27 09:40:11 +01:00
Bastian Köcher
c0d80a7c95
Fix syncing issues ( #249 )
2020-11-26 22:14:12 +01:00