Qinxuan Chen
fd145766d4
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
9dd0f5c225
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
Oliver Tale-Yazdi
2327eae5c9
Use define_benchmarks! ( #926 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-01-21 17:13:23 +00:00
Keith Yeung
9c977d66a3
Companion for paritytech/polkadot#4712 ( #901 )
...
* Rename ParentIsDefault to ParentIsAllZeroes
* Fixes
* Create ParentAccounts for respective networks
* Fixes
* Use b"Parent" as the basis for generating parent AccountId
* Fixes
* Use preset parent account ID
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-01-21 11:40:27 +00:00
Ignacio Palacios
60c3ccfd62
Add set custom header to Seedling Runtime ( #846 )
...
* before adding seedling client side
* seedling runtime compiles
* create seedling spec script added
* seedling node & BaseCallFilter fixes
* update AllPalets
* formatting
* CallFilter + SignedExtra + AccountData fix
* XCM removed
* cleanup
* solo-to-para pallet added & before testing
* fix runtime upgrade method
* soloToPara pallet + set header
* clean up
* clean up 2
* signed extension check sudo added
* fmt + cleanup
* Refac code and fixes
* fmt
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* small fixes
* OnValidationData used
* small changes
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update pallets/solo-to-para/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* OnValidationData replaced by OnSystemEvent
* fmt + cargo fix
* disable-default-bootnodes for seedling script
Co-authored-by: Ricardo Rius <ricardo@parity.io >
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-01-14 14:21:10 +01:00
Doordashcon
2d9123d456
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
Adrian Catangiu
242cdc306b
Cumulus companion for substrate #10463 ( #870 )
...
* Companion for substrate #10463
* update lockfile for substrate
* update lockfile for polkadot
Co-authored-by: parity-processbot <>
2022-01-05 20:33:23 +00:00
Bastian Köcher
2f9e97ce02
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
cheme
b9ba74892a
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
7b42df10f3
Introduce interface for relay chain interaction ( #835 )
2021-12-22 19:02:11 +01:00
Keith Yeung
1856c5df34
Update serde to 1.0.132 ( #871 )
2021-12-21 09:15:50 +01:00
sandreim
df4fa291ee
Companion for #10440 (Add logger configuration hook) ( #856 )
...
* update `DefaultConfigurationValues` impl
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update lockfile for substrate
Co-authored-by: parity-processbot <>
2021-12-16 11:57:17 +00:00
Gavin Wood
57a9c0f9f2
Bump Polkadot and fix ( #855 )
...
* Minor build fix
* Remove diener
* Update lock
2021-12-13 19:15:36 +01:00
Keith Yeung
1a71d006a7
Update serde to 1.0.131 ( #853 )
2021-12-11 14:10:51 +01:00
Bastian Köcher
2a8c07bf0b
Update to latest Polkadot & Substrate ( #850 )
...
* Update to latest Polkadot & Substrate
* More fixes
2021-12-10 12:08:41 +01:00
Gavin Wood
a4b3b378eb
Companion for #10382 (Insufficient asset quotes and deposits) ( #804 )
...
* MaxConsumers
* Fixes
* Fixes
* Fixes
* Fixes
* Bump
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-09 17:24:32 +01:00
Keith Yeung
1bfbc7fe0c
Add CheckNonZeroSender to runtime configs ( #847 )
...
* Add CheckNonZeroSender to runtime configs
* cargo update -p polkadot-primitives
* Fixes
* Fixes
2021-12-09 14:53:51 +01:00
Keith Yeung
b5a7ab4d12
Support overweight messages in XCMP queue ( #799 )
...
* Support overweight messages in XCMP queue
* Add storage migration logic to XCMP queue pallet
* Check whether required weight is larger than max individual weight first
* cargo fmt
* Add some unit tests
* Remove review question comment
2021-12-08 18:07:08 -08:00
Kian Paimani
e70f7fd016
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
zjb0807
94988af02f
use double quotes instead of single quotes ( #815 )
2021-12-01 03:00:11 +00:00
Guillaume Thiolliere
6bcafd40ce
companion for pallet order fix ( #711 )
...
* companion
* Run cargo update
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-12-01 01:51:58 +00:00
zjb0807
d246858d17
Companion for #10324 - update frame-benchmarking/runtime-benchmarks ( #802 )
...
* update frame-benchmarking/runtime-benchmarks
* cargo update
* add more feature flags
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-11-30 21:47:09 +01:00
Liu-Cheng Xu
9b6db48a42
Specify edition 2021 in .rustfmt.yml ( #760 )
...
This PR is mainly to fix the error `[E0670]: async fn is not permitted in the 2015 edition` when
using Vim along with rust-analyzer, it also removes an unused dependency from parachain-template.
Ref: https://github.com/rust-analyzer/rust-analyzer/issues/1959
2021-11-16 15:12:50 +01:00
Dan Shields
ec401ce1d0
move to rust 2021 ( #759 )
...
* move to rust 2021
* fix formatting, more moves
2021-11-16 15:12:06 +01:00
Arkadiy Paronyan
473af71987
Update for latests substrate & polkadot ( #756 )
...
* Update for latests substrate & polkadot
* fmt
2021-11-12 16:45:09 +01:00
sandreim
b968e54fe5
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
496fab27b5
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
520012619e
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
Ignacio Palacios
66310bd6ce
Remove randomness collective flip new ( #726 )
...
* randomess collective flip removed
* cargo.lock + fix
* remove migration for statemint
* fmt fix
* update cargo.lock
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-11-09 17:01:44 +01:00
Alexander Popiak
e304662f04
Upstream Statemine Release v5 Changes to Master ( #720 )
...
* Update references
* update deps
* set substrate deps for pallet-asset-tx-payment
* add DisabledValidatorsThreshold to parachain template
* add DisabledValidatorsThreshold to statemint runtimes
* adjust imports
* update Cargo-lock
* add DisabledValidatorsThreshold to mock config
* cargo +nightly fmt
* adjust on_disabled type
* remove on_chain_votes function in ParachainHost impl
* remove ScrapedOnChainVotes
* bump polkadot-collator version
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
* update Cargo.lock
* set spec_versions to 500
* Statemine cannot execute.
* disallow XCM execute on statemint
* cargo fmt
* remove unnecessary dep on node-primitives
* select parachains-common/std feature when building rococo-runtime with std
* adjust Statemint to the three digit spec_version format
* Add script to generate simple changelogs (#668 )
* Update weights from v4 for v5 comparison (#673 )
* updates weights
* pallet_unique benchmarks added + weights upstream from v4
* Fix benchmarks after Parachain Template (#677 )
* updates weights
* pallet_unique benchmarks added + weights upstream from v4
* benchmarks fix for parachain template
* Weights updates for Statemine v5 (#682 )
* updates weights
* pallet_unique benchmarks added + weights upstream from v4
* weights updates for statemine v5
* mention Storage in construct_runtime macro for pallet-xcm (#680 )
* Use pallet-xcm for version wrapping (#689 )
* use PolkadotXcm for XcmRouter WrapVersion
* use PolkadotXcm for version wrapping
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
* patch weight for batch_all from rerun
* Runtime version bump to v503 (#694 )
* adjust genesis value generation scripts to output entries array + add script to derive encoded call
* add script to generate shell spec from runtime wasm
* Ensure a bad datastream cannot cause problems (#701 )
* Ensure a bad datastream cannot cause problems
* Formatting
* Formatting
* update Polkadot (to 0.9.11 169bab55d)
* bump spec versions
* Allow Queries and Subscriptions
Fixes
Formatting
* fix build
* make fmt happy
* statemint imports
* slight naming changes in script
* add shell genesis data + wasm + chainspec
* adjust generated shell spec with production config values
* update Substrate and Polkadot to master
* fix deps
* swap out bootnodes for statemint shell
* add a script for verifying the shell chain spec
* add sha checksum for head data
* remove verification script
* remove hex wasm file
* update Substrate and Polkadot again and fix compilation
* update and fix lock file
* formatting
* remove redundant dispatch_as weight
Co-authored-by: Bastian Köcher <info@kchr.de >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Gav Wood <gavin@parity.io >
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
Co-authored-by: joepetrowski <joe@parity.io >
2021-11-08 15:52:47 +01:00
Gavin Wood
41c597faa7
Allow Queries and Subscriptions ( #700 )
...
* Allow Queries and Subscriptions
* Fixes
* Formatting
2021-10-27 18:14:27 +02:00
Alexander Popiak
2ff5f7c443
fix runtime import formatting ( #679 )
2021-10-19 18:13:27 +02:00
Gavin Wood
561e8eb349
Make sure comments and code for local origins match ( #671 )
...
* Make sure comments and code for local origins match
* Fixes
2021-10-17 22:37:01 +02:00
Dan Shields
308c8f6fc3
move to substrate.io ( #658 )
...
Co-authored-by: Dan Shields <danwshields@gmail.com >
2021-10-14 09:56:03 +02:00
Alexander Popiak
eff56f60f3
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
Alexander Popiak
f499617c01
update Substrate and Polkadot (to include new transaction priority) ( #645 )
...
* update Substrate and Polkadot
* Update parachain-template/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-05 11:48:33 +00:00
Hernando Castano
391d2f5241
Add Parachain Template ( #620 )
...
* Add Canvas node as Parachain template
* Remove `pallet-contracts`
* Point to local Cumulus dependency
* Use double quotes instead of single quotes
* Get rid of GPL licensing
* Remove references to Canvas
* Get rid of warnings
* Remove GLP-3 License copy-pasta file
* Copy in README from `substrate-parachain-template`
* Add mention of `polkadot-launch` tool
* Add missing screenshot asset
* Remove Canvas hidden files and scripts
* Rename `template` to `parachain-template`
* Remove a few more Canvas references
* Add `pallet-template`
* Get `pallet-template` compiling
* Remove TODOs about Weights
* Sort some dependencies
* Remove contracts specific const
* Change binary name back to `parachain-collator`
* RustFmt
* Fix mock tests
* Purge sneaky whitespace
* Add template pallet index to runtime
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
* Add force authoring to collator `polkadot-launch` config
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
* Refer README readers to `substrate-parachain-template`
* Remove license header in `build.rs`
Co-authored-by: Michael Müller <michi@parity.io >
* Fix punctuation nitpick
Co-authored-by: Michael Müller <michi@parity.io >
* Remove unused `lib.rs` file
* Add note about Rococo network
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Michael Müller <michi@parity.io >
2021-09-23 20:47:47 +03:00