Bastian Köcher
98f0e87daf
CI: Check that rustdocs can be generated ( #972 )
2022-02-09 13:24:42 +01:00
yjh
e6e5d1bb0a
Fix some typos for client ( #968 )
...
* chore: fix typos for consensus
* chore: fix typos for RelayChainError
2022-02-09 11:20:00 +01:00
Bastian Köcher
6cbb92bbc8
Return compressed PoV from collation ( #942 )
...
* Return compressed PoV from collation
This enables us to also print the size of the compressed PoV.
* FMT
* Update Polkadot & Substrate
* Fix compilation
* Fixes
* FMT
2022-02-07 21:04:56 +00:00
Sebastian Kunert
dacd0aed5e
Unify RelayChainInterface error handling and introduce async ( #909 )
2022-01-25 18:27:54 +01:00
Qinxuan Chen
e802dcad1d
Companion for substrate#10632 ( #895 )
...
* Companion for substrate#10632
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo update -p clap
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update substrate
* update lockfile for {"polkadot"}
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: parity-processbot <>
2022-01-25 11:42:59 +00:00
Bastian Köcher
035f7cee9f
pov-recovery: Enable pov-recovery as well on full nodes ( #927 )
...
* pov-recovery: Enable pov-recovery as well on full nodes
Pov recovery was before only enabled for collators. The reason behind this was prevention of spam of
the relay chain for block recovery. However, recent events has shown that this wasn't a good idea.
So, this pr enables pov-recover for normal full nodes as well, but with a much higher delay before
trying to recover a block. This means that full nodes will wait in minimum 2.5 minutes and in
maximum 5 minutes before recovering a block. This should give collators in "normal mode" enough time
to recover a block (they wait in maximum 6 seconds after they have seen a new candidate in the relay
chain) before recovering a block. So, we should hopefully not spam the relay chain.
* FMT
* Fixes
* Fix documentation
2022-01-21 20:16:11 +01:00
Jun Jiang
0346f89e9f
companion for polkadot/4078 ( #907 )
2022-01-17 09:14:54 +01:00
Doordashcon
60f5e0cf2d
Use Polkadot Constants instead of Hardcoding ( #868 )
...
* added Polkadot constants
* remove hardcoded constants
* cargo +nightly fmt
* add const existential deposit
* update
* cargo +nightly fmt
* not pulling
* readd constants.rs modules
* update
* Cargo.lock
* update
* add balance constants
* Update polkadot-parachains/statemine/src/constants.rs
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2022-01-13 11:54:59 +00:00
Bastian Köcher
7fb70d7530
Fix solo to para custom header return ( #882 )
...
* Adds an integration test for testing the migration
* Fix the custom validation header use case
2022-01-03 20:14:14 +01:00
Andronik Ordian
09b8d7435e
companion for polkadot#4545 (session-info v2) ( #875 )
...
* companion for https://github.com/paritytech/polkadot/pull/4545
* update lockfile for polkadot
Co-authored-by: parity-processbot <>
2021-12-27 08:34:08 +00:00
cheme
0256fe73c0
Companion for substrate#9732 ( #678 )
...
* state-update4 branch
* new ref
* Update to latest.
* update deps
* switch to host state version
* update
* fmt
* up
* remove trie patch
* remove patch
* fmt
* update
* set state_versions in runtimes
* state version from storage
* state version from storage
* seedling compat
* restore lock
* update lockfile for substrate
* update lockfile for polkadot
Co-authored-by: parity-processbot <>
2021-12-24 11:28:43 +00:00
Sebastian Kunert
876e594f59
Introduce interface for relay chain interaction ( #835 )
2021-12-22 19:02:11 +01:00
Andronik Ordian
7acfd4f80a
companion for polkadot#4542 ( #873 )
...
* new ParachainHost methods
* update polkadot
2021-12-22 13:58:53 +01:00
Bastian Köcher
c342de58bb
Substrate companion for fetching slot duration ( #864 )
...
* Substrate companion for fetching slot duration
https://github.com/paritytech/substrate/pull/10509
* update lockfile for substrate
* Update
Co-authored-by: parity-processbot <>
2021-12-20 23:46:45 +00:00
Bastian Köcher
5f4f3beb44
Update again ( #852 )
2021-12-10 16:38:01 +01:00
Bastian Köcher
6c6802b67c
Update to latest Polkadot & Substrate ( #850 )
...
* Update to latest Polkadot & Substrate
* More fixes
2021-12-10 12:08:41 +01:00
Kian Paimani
70ea98995a
Integrate try-runtime into cumulus ( #793 )
...
* almost integrate
* revert branch changes
* remove extra deps
* some review comments'
* Fix a bunch of stuff
* Update parachain-template/node/Cargo.toml
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix
* Fix
* fix benchmark
* fmt
* Remove wrong bench test
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-02 14:00:54 +01:00
Bastian Köcher
801c1bef0a
Update Substrate & Polkadot ( #770 )
...
* Update Substrate & Polkadot
* Disable tests without debug assertions
2021-11-19 23:46:14 +01:00
Dan Shields
70923da617
move to rust 2021 ( #759 )
...
* move to rust 2021
* fix formatting, more moves
2021-11-16 15:12:06 +01:00
Arkadiy Paronyan
b2d9102b0d
Update for latests substrate & polkadot ( #756 )
...
* Update for latests substrate & polkadot
* fmt
2021-11-12 16:45:09 +01:00
sandreim
5f5190625d
Companion to substrate #10196 - Add group name in task metrics ( #732 )
...
* Use blank task group name
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* cargo fmt
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* Update
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update Cargo.lock and switch from 0.9.12 to master
* format with LATEST nightly
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-11-11 19:41:36 +00:00
Dan Shields
3284976a1b
Tweaks from template downstream review #80 ( #705 )
...
* tweaks from template downstream review #80
* more tweaks
* Update parachain-template/node/src/command.rs
* tweaks to template and other chainspecs
* fmt
* update more tweaks from downstream
* fix build
2021-11-11 19:20:39 +00:00
Bastian Köcher
c6c9ee1a09
Remove parachain-id cli command ( #739 )
...
This was never planned to be a permanent feature. This was mainly added for testing purposes, but
now was copied by everybody. The users should be more specific about the para id and set this
properly in the chain spec.
2021-11-10 08:56:00 +01:00
Chris Sosnin
836d9a43d0
Companion for polkadot#3728 ( #693 )
...
* Update mock runtime API
* update Polkadot packages
Co-authored-by: joao-paulo-parity <joao-paulo@parity.io >
2021-10-22 16:31:58 +02:00
Alexander Popiak
2647053fd3
Upstream Statemine v4 Changes ( #649 )
...
* bump runtime spec version
* remove applied runtime migrations
* bump transaction_version
necessary because of extrinsic API changes to pallet-xcm
https://github.com/paritytech/polkadot/pull/3693
* Fix Benchmarks for Statemine-V4 release (#639 )
* register validators
* register_as_candidate & leave_intent fixed
* new_session benchmark fixed
* intent_leave_modified
* clean up
* clean up
* benchmark script updated
* update cargo.lock
* done
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Version bump (#648 )
* Version bump
fix #646
* Revert "Version bump"
This reverts commit 07517e0e76a37a1dd67176fec0524d0211666635.
* Bump polkadot-collator version
* Update polkadot-parachains/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update deps
* Bump version to 4.0.0
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* cargo toml fix
* update deps and remove DisabledValidatorThreshold
* cargo +nightly fmt
* fix compile error
* fix client tests after Polkadot update
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-11 10:27:49 +02:00
Bastian Köcher
bd6b147235
Add relay_parent to block announce data ( #640 )
...
* Add `relay_parent` to block announce data
This is required to make it more future proof when contextual execution is coming. While this
changes the `BlockAnnounceData` type, it is written in a way to make it backwards compatible.
* FMT
2021-10-04 09:53:18 +02:00
Bastian Köcher
a8d84dba8e
Same procedure as not every day ( #636 )
...
* Same procedure as not every day
* Remove warning
* Update
2021-10-01 13:23:56 +02:00
Bastian Köcher
24f8cd72cf
Remove a where bound that isn't required anymore ( #633 )
2021-09-30 14:36:25 +02:00
Keith Yeung
eeca16388c
Use DecodeLimit for decoding XCM messages ( #605 )
...
* Use DecodeLimit for decoding XCM messages
* Use decode_all_with_depth_limit in appropriate places
* Use decode_all while decoding byte vector
* cargo fmt
2021-09-19 15:29:34 +03:00
Chevdor
6b20f7a2c5
ci: add quick-check with rustfmt ( #615 )
...
* ci: add quick-check with clippy and rustfmt
* chore: rustfmt round
* chore: set the same rustfmt config than substrate
* chore: fix formatting
* cI: remove clippy
* ci: switch to nightly for the checks
* ci: fix toolchains and naming
* ci: Limit the check to formatting
* chore: fix formatting
* Update .rustfmt.toml
* Update .rustfmt.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 16:57:52 +02:00
Andrew Jones
e3eb3a0a12
Metadata v14 (companion to #3336 ) ( #564 )
...
* Remove event pallet::metadata attributes
* Add scale-info deps, TypeInfo derives, update call variants
* Update metadata runtime APIs
* Add missing scale_info dependency, update rococo runtime API
* Add missing scale_info dependency
* Remove pushed diener patches
* Cargo.lock
* Add missing scale-info dependencies
* Fixes
* Statemint runtime fixes
* Call struct variant empty matches
* Add missing scale-info dependency
* Fixes
* scale-info 1.0
* cargo update -p xcm
* update lock
* Update Cargo.lock
* update to latest polkadot
* remove rpc_http_threads
https://github.com/paritytech/substrate/pull/9737
* replace task executor with tokio handler
https://github.com/paritytech/substrate/pull/9737
* fix test compilation?
* Update Cargo.lock
* cargo update
* remove unused
* Update substrate and polkadot
* Update test/client/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-16 12:11:05 +02:00
Bastian Köcher
7364a773ef
Upgrade Substrate & Polkadot ( #612 )
2021-09-16 06:57:29 +02:00
Squirrel
127b2608ec
less deps ( #606 )
2021-09-12 23:22:14 +02:00
Hernando Castano
eb7308b67b
Bump Substrate, Polkadot, and BEEFY ( #602 )
...
* Bump Substrate, Polkadot, and BEEFY
* Add `Sync` bound to Aura trait bounds
2021-09-10 23:24:16 +02:00
Robert Habermeier
cdbd4c12af
bump deps, fix aura-ext pallet, and fill in stubs for XCM ( #600 )
...
* bump deps, fix aura-ext pallet, and fill in stubs for XCM
* response handler, asset trap, asset claims
* subscription_service
* update xcmp-queue mock
* fix tests
* Update polkadot deps
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-09-04 14:57:48 -05: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
Bastian Köcher
1866657e2c
Disable integration tests outside of CI ( #565 )
2021-08-07 23:03:12 +02:00
Bastian Köcher
9a0cfd9117
Update Substrate & Polkadot ( #563 )
2021-08-05 20:53:32 +02:00
Bastian Köcher
0f4674c04e
Log pov size as info ( #558 )
2021-08-03 21:52:41 +02:00
Bastian Köcher
6c0abc6f7d
Update Substrate & Polkadot ( #557 )
...
* Update Substrate & Polkadot
* Format
* Update again
2021-08-03 11:59:37 +02:00
Bastian Köcher
1b92af9042
Update Substrate & Polkadot ( #551 )
...
* Update Substrate & Polkadot
* Update client/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update client/service/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-27 22:42:39 +02:00
tgmichel
0b730156f6
Add rpc_http_threads ( #548 )
2021-07-23 10:07:31 +00:00
Bastian Köcher
617c0df264
Do not set best block when there already exists a best block with an higher number ( #544 )
...
* Do not set best block when there already exists a best block with an higher number
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-07-21 16:21:52 +02:00
Bastian Köcher
8d21ce602c
Update Substrate & Polkadot ( #540 )
2021-07-20 16:11:56 +02:00
Bastian Köcher
a6bd34545e
Update Substrate & Polkadot ( #523 )
2021-07-05 23:35:28 +02:00
Sergei Shulepov
59a23c8d8d
Update Substrate & Polkadot ( #519 )
...
* Update Substrate & Polkadot
* Basti improvements
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-06-28 20:38:28 +00:00
André Silva
8f733a6c2c
use max_block_proposal_slot_portion ( #499 )
...
* use max_block_proposal_slot_portion
* remove patch now that Substrate PR is merged
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-06-20 11:05:08 +00:00
Sergei Shulepov
1f3458a0e3
WIP: Update Substrate & Polkadot ( #496 )
...
* WIP: Update Substrate
* Update Substrate & Polkadot
* fixes
* more fixes
* few missing origins
* use spawn_essential_handle
* bump polkadot dep
* remove newlines
* fix test
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-17 09:37:03 +02:00
Bastian Köcher
d6f06bf5d9
Adds support for checking the timestamp inherent while validating a block ( #494 )
...
* Adds support for checking the timestamp inherent while validating a block
This adds support for checking the timestamp inherent while validating a
block. This will use the relay chain slot number * relay chain slot
duration to calculate a timestamp. This timestamp is used to check the
timestamp in the timestamp inherent.
* Update polkadot-parachains/rococo-runtime/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update polkadot-parachains/statemine-runtime/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update primitives/timestamp/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Fix warnings
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-06-16 10:53:47 +02:00
Bastian Köcher
c5819c9e78
Use polkadot-client instead of polkadot service where possible ( #489 )
2021-06-11 12:56:14 +02:00