Gavin Wood
00d6fc5af0
Avoid bad pattern of wildcard fees ( #3578 )
...
* Avoid bad pattern of wildcard fees
* spelling
* fmt
* Fix runtimes
* spelling
2021-08-05 17:44:34 +02:00
Martin Pugh
49a46f78d3
Bump versions, substrate and beefy in prep for v0.9.9 ( #3567 )
...
* bump versions, substrate and beefy
* bump substrate
2021-08-05 15:12:18 +02:00
Bastian Köcher
7dc036d6d2
Substrate companion #9491 ( #3568 )
...
* Substrate companion #9491
https://github.com/paritytech/substrate/pull/9491
* update Substrate
* Fix build
Co-authored-by: parity-processbot <>
2021-08-04 17:56:16 +00:00
Sergei Shulepov
72a8bba401
Introduce upgrade go-ahead and upgrade restriction signals ( #3371 )
...
* Introduce upgrade goahead and upgrade restriction signals
* Explicit encoding indicies for exposed enums
* typo: abscent -> absent
* Prune cooldowns as well
* Please hunspell
2021-08-03 19:28:37 +02:00
André Silva
e9a6689e79
Companion for substrate#9414 ( #3524 )
...
* Companion for substrate#9414
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-03 11:36:23 +00:00
ferrell-code
24c0d5a51e
Parachains para_inherent.rs to FrameV2 ( #3531 )
...
* last parachains migration!
* migrate runtimes
* disable frame supertrait
* add pallet::inherent
* mock
* cargo +nightly fmt
2021-08-03 11:02:34 +00:00
Guillaume Thiolliere
85e11980ff
remove unused ( #3553 )
2021-08-02 14:58:52 +00:00
Bastian Köcher
2cfda98aca
Change pallet naming in test-runtime ( #3551 )
...
* Change pallet naming in test-runtime
This is required to make the `well_know_keys::ACTIVE_CONFIG` match the
`ActiveConfig` key.
* Use correct name
* 🤦
2021-08-02 10:54:54 +00:00
Shawn Tabrizi
ff5d56fb76
cargo +nightly fmt ( #3540 )
...
* cargo +nightly fmt
* add cargo-fmt check to ci
* update ci
* fmt
* fmt
* skip macro
* ignore bridges
2021-08-02 10:47:33 +00:00
Arkadiy Paronyan
30e3012270
Companion PR for warp sync support. ( #3382 )
...
* Update for the new GrandpaAPI
* Update substrate
* Update substrate
2021-08-02 09:59:50 +00:00
Shawn Tabrizi
3445cbecd0
Companion for #9373 (Refactor Benchmarks for Wasm Memory) ( #3549 )
...
* cargo update -p sp-io
* fix benchmarking
* fix bridge benchmarks
2021-08-02 09:17:19 +00:00
ferrell-code
c615761379
Parachains scheduler.rs to FrameV2 ( #3529 )
...
* migration
* migrate runtimes
* storage visability
* Remove unused Call part
* Remove Call part import from parachain mock runtime
* Remove Call part import from test-runtime
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-31 15:54:01 +00:00
ferrell-code
c251e1e0a0
Parachains session_info.rs to FrameV2 ( #3521 )
...
* migration
* storage visability
* migrate runtimes
* runtimes
* Update runtime/parachains/src/session_info.rs
* Remove Call part import from all runtimes for ParaSessionInfo
* Remove Call part import from runtime/test-runtime/src/lib.rs
* Remove Call part import from parachain mocks
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-31 12:17:42 +00:00
ferrell-code
84ca3b2b3b
Parachains configuration.rs FrameV2 ( #3516 )
...
* migration
* genesis build correctly
* migrate runtimes
* add genesis builds
* expose GenesisBuild
* chainspec migration
* fmt
* check before insert
* Reduce visibility of storage items to crate
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-28 04:56:35 +00:00
ferrell-code
3b87d363e9
Parachains ump.rs to FrameV2 ( #3528 )
...
* migrate
* migrate runtimes
2021-07-27 23:07:50 +00:00
Bastian Köcher
f5a7affb94
Companion for Substrate#9165 ( #3526 )
...
* Companion for Substrate#9165
https://github.com/paritytech/substrate/pull/9165
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-27 21:58:59 +00:00
Zeke Mostov
aac9d77ee2
Reduce staking miner reward (companion substrate/pull/9395) ( #3465 )
...
* Reduce staking miner reward
* Add EOF
* Fix stuff
* remove import
* Add tyoe
* remove redundant stuff
* update Substrate
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: parity-processbot <>
2021-07-23 09:58:29 +00:00
ferrell-code
7788de8164
Parachains shared.rs to Frame V2 ( #3425 )
...
* gotta migrate them all
* migrate rococo construct_runtime
* trigger ci
* fix warnings
* get mocks to work
* add pallet to test runtime
* comments
* calm down mr tabrizi lol
2021-07-22 21:59:31 +00:00
ferrell-code
26330640d2
Parachains hrmp.rs to Frame V2 ( #3475 )
...
* migrate
* migrate runtimes
* runtimes compile
* ci
* trigger ci
2021-07-22 10:21:22 +00:00
Shaun W
4bb487985a
Migrate slots pallet to pallet attribute macro. ( #3218 )
...
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-07-22 09:19:58 +00:00
ferrell-code
18f467c865
parachain dmp.rs to Frame V2 ( #3426 )
...
* migration
* fix warning
* change runtimes
* extra line
* another double space lol
* add dmp in test runtime
* test runtime
* Adjust visibility on storage items
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-22 04:49:21 +00:00
ferrell-code
cf904c209f
Parachains inclusion.rs to Frame V2 ( #3440 )
...
* frame v2
* migrate runtimes
* migrate more
* comments
* docs
* cleanup
* Adjust visibility on storage items
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-07-22 04:36:29 +00:00
Robert Habermeier
675f71a882
Dispute vote filtering for block authors ( #3498 )
...
* guide: filter_multi_dispute_data
* guide: elaborate
* Implementation of dispute data filtering
* tests for filtering
* don't use std, you fool!
* use swap_remove
* Update runtime/parachains/src/disputes.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* use btreeste
* address API nit
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-21 21:48:07 +02:00
Bastian Köcher
b94f294f4d
Update secp256k1 and remove unrequired usage ( #3502 )
...
* Update secp256k1 and remove unrequired usage
* Rename missed old crate names
* Enable required feature
2021-07-20 12:21:27 -05:00
Robert Habermeier
ec98120f0e
Disputes runtime ( #2947 )
...
* disputes module skeleton and storage
* implement dispute module initialization logic
* implement disputes session change logic
* provide dispute skeletons
* deduplication & ancient check
* fix a couple of warnings
* begin provide_dispute_data impl
* flesh out statement set import somewhat
* move ApprovalVote to shared primitives
* add a signing-payload API to explicit dispute statements
* implement statement signature checking
* some bitflags glue for observing changes in disputes
* implement dispute vote import logic
* flesh out everything except slashing
* guide: tweaks
* declare and use punishment trait
* punish validators for inconclusive disputes
* guide: tiny fix
* guide: update docs
* add disputes getter fn
* guide: small change to spam slots handling
* improve spam slots handling and fix some bugs
* finish API of disputes runtime
* define and deposit `RevertTo` log
* begin integrating disputes into para_inherent
* use precomputed slash_for/against
* return candidate hash from process_bitfields
* implement inclusion::collect_disputed
* finish integration into rest of runtime
* add Disputes to initializer
* address suggestions
* use pallet macro
* fix typo
* Update runtime/parachains/src/disputes.rs
* add test: fix pruning
* document specific behavior
* deposit events on dispute changes
* add an allow(unused) on fn disputes
* add a dummy PunishValidators implementation
* add disputes module to Rococo
* add disputes module to westend runtime
* add disputes module to test runtime
* add disputes module to kusama runtime
* guide: prepare for runtime API for checking frozenness
* remove revert digests in favor of state variable
* merge reversions
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update runtime/parachains/src/disputes.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* add byzantine_threshold and supermajority_threshold utilities to primitives
* use primitive helpers
* deposit revert event when freezing chain
* deposit revert log when freezing chain
* test revert event and log are generated when freezing
* add trait to decouple disputes handling from paras inherent handling
* runtime: fix compilation and setup dispute handler
* disputes: add hook for filtering out dispute statements
* disputes: add initializer hooks to DisputesHandler
* runtime: remove disputes pallet from all runtimes
* tag TODOs
* don't import any dispute statements just yet...
* address grumbles
* fix spellcheck, hopefully
* maybe now?
* last spellcheck round
* fix runtime tests
* fix test-runtime
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-07-19 16:49:19 +00:00
Denis Tsai
633dfbcfb0
added pallet-proxy in rococo feature dependencies ( #3486 )
2021-07-19 08:52:27 +02:00
Tomasz Drwięga
79174e0b7e
Update BEEFY+MMR integration. ( #3480 )
...
* Update MMR leaf.
* Revert to older substrate.
* Add version docs.
* Fix spellcheck.
2021-07-16 15:13:20 +02:00
Denis Pisarev
fc253e6e4d
WIP: CI: add spellcheck ( #3421 )
...
* CI: add spellcheck
* revert me
* CI: explicit command for spellchecker
* spellcheck: edit misspells
* CI: run spellcheck on diff
* spellcheck: edits
* spellcheck: edit misspells
* spellcheck: add rules
* spellcheck: mv configs
* spellcheck: more edits
* spellcheck: chore
* spellcheck: one more thing
* spellcheck: and another one
* spellcheck: seems like it doesn't get to an end
* spellcheck: new words after rebase
* spellcheck: new words appearing out of nowhere
* chore
* review edits
* more review edits
* more edits
* wonky behavior
* wonky behavior 2
* wonky behavior 3
* change git behavior
* spellcheck: another bunch of new edits
* spellcheck: new words are koming out of nowhere
* CI: finding the master
* CI: fetching master implicitly
* CI: undebug
* new errors
* a bunch of new edits
* and some more
* Update node/core/approval-voting/src/approval_db/v1/mod.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update xcm/xcm-executor/src/assets.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* Suggestions from the code review
* CI: scan only changed files
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-07-14 19:22:58 +02:00
Qinxuan Chen
f6305d29be
runtime(rococo): remove useless Call of pallet-mmr ( #3350 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-07-14 09:26:12 +00:00
Seun Lanlege
ab9c86d5e7
Introduce test runner biolerplate ( #2609 )
...
* adds test-runner boilerplate
* revert to master
* Update node/test/runtime/Cargo.toml
Co-authored-by: Andronik Ordian <write@reusable.software >
* fix warning
* use polkadot_development_config
* remove vestigial code
* ...
* remove unused dependencies
* adds simnet binary
* adds simnet binary
* merged with remote
* dummy to check pipeline
* add 2 docker files and a build cmd
* adds logging
* atempt to use binary from build host
* fix simnet-binary
* fix docker commands
* switch branches
* ...
* update docker file
* update the dockerfile 2
* add some message in the cheatsheet
* add repo to chaches stage also
* update paths
* do only 1 stage build
* add time when build cmd started
* remove debugg commands
* polkadot-simnet-substrate-working-version-v1
* reduce size of polkadot-simnet image
* update test runner api
* update test-runner
* ...
* revert to master
* Merge branch 'master' of github.com:paritytech/polkadot into substrate-test-runner
* bump impl version
* remove unused imports, fix test
* was_binary.to_vec()
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* remove unused import
* remove unused import
* adds post upgrade test
* dry code
* revert spec_version
* update Cargo.lock
* tested and it works
* compare runtime spec version
* fix spaces, remove docker files
* replace spaces with tabs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* ...
* revert Cargo.lock
* bump cargo.lock
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: radupopa2010 <radupopa2010@yahoo.com >
Co-authored-by: CI system <>
2021-07-13 16:45:27 +01:00
Qinxuan Chen
41045d891a
Companion for substrate#9197 ( #3359 )
...
* Companion for substrate#9197
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* update Substrate
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2021-07-13 08:05:48 +00:00
Alexander Theißen
2d102308de
Companion for #9276 : Remove Filter impl on () ( #3420 )
...
* Switch from () to AllowAllFilter
* Rename AllowAllFilter -> AllowAll
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-12 21:12:52 +00:00
Kian Paimani
d53ec86bbe
Companion for substrate/pull/9286 ( #3443 )
...
* Fix weights
* try something to unbreak companion
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-07-09 20:25:13 +00:00
Lldenaurois
7313e485d0
Approval voting overlay db ( #3366 )
...
* node/approval-voting: Introduce Backend trait and Overlaybackend
This commit introduces a Backend trait and attempts to move away
from the Action model via an OverlayBackend as in the ChainSelection
subsystem.
* node/approval-voting: Add WriteOps for StoredBlockRange and BlocksAtHeight
* node/approval-voting: Add load_all_blocks to overlay
* node/approval-voting: Get all module tests to pass.
This commit modifies all tests to ensure tests are passing.
* node/approval-voting: Address oversights in the previous commit
This commit addresses some oversights in the prior commit.
1. Inner errors in backend.write were swallowed
2. One-off write functions removed to avoid useless abstraction
3. Touch-ups in general
* node/approval-voting: Move from TestDB to dyn KeyValueDB
This commit removes the TestDB from tests.rs and replaces it with
an in-memory kvdb.
* node/approval-voting: Address feedback
* node/approval-voting: Add license to ops.rs
* node/approval-voting: Address second-pass feedback
* Add TODO
* node/approval-voting: Bump spec_version
* node/approval-voting: Address final comments.
2021-07-08 15:00:57 +00:00
Shawn Tabrizi
0e7217b4da
Companion for #9090 (include storage info) ( #3424 )
...
* update benchmark
* add host function
* update Substrate
* fix unused
Co-authored-by: parity-processbot <>
2021-07-07 23:01:00 +00:00
ferrell-code
528e751753
parchain initializer.rs to FrameV2 ( #3416 )
...
* migrate to FrameV2
* kusama & westend change pallet name
* keep item private
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-07-07 02:50:52 +00:00
Martin Pugh
5ba0de035e
Update all weights, add run_all_benches.sh script ( #3400 )
...
* update all weights
* add run_all_benches.sh
2021-07-06 13:12:28 +02:00
Svyatoslav Nikolsky
04ac35e127
Enable over-bridge-messaging in Rococo/Wococo runtime ( #3377 )
...
* bridges in W<>R
* fix node compilation
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Update runtime/rococo/src/bridge_messages.rs
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* long line fix
* comment/remove -> comment/#[ignore]
* explicit instances
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
2021-07-06 10:03:12 +00:00
ferrell-code
39969ca536
paras.rs to FRAME V2 ( #3403 )
...
* to v2 macro
* line width
* fix mock
* actually compile moxk
* compile tests
* add hooks
* origin back in mocks
* assimilate_storage
* add generic
* maybe mock compiles now
* origin between parachain and system causing problem
* change origin
* type alias as origin
* keep origin
* add aliases to tests
* remove unnecessary imports
* Parachain -> Paras
* paras test
* nvm
* use genesis build in mock
2021-07-06 00:24:27 +00:00
Igor Matuszewski
037f22342b
Use MaxEncodedLen trait from new parity-scale-codec v2.2 ( #3412 )
...
* Use MaxEncodedLen trait from new parity-scale-codec v2.2
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-05 21:11:03 +00:00
ferrell-code
bf7aff2632
origin to frame v2 ( #3405 )
2021-07-05 16:48:51 +00:00
Kian Paimani
505145efd3
Staking Miner ( #3141 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <peter.r.goodspeedniklaus@gmail.com >
2021-07-01 20:22:35 +01:00
Bastian Köcher
ad46aadb1a
Companion for Substrate#8953 ( #3140 )
...
* Companion
* Update branch
* Update to correspond to substrate fixes
* Update cargo.lock
* Remove patches
* update Substrate
Co-authored-by: parity-processbot <>
2021-07-01 16:21:51 +00:00
Martin Pugh
cfbfefc972
Bump version, specs & substrate in prep for v0.9.8 ( #3387 )
...
* bump version
* bump substrate
* bump spec_versions
2021-07-01 12:09:41 +02:00
Shawn Tabrizi
4911251a72
Companion for #9193 ( #3376 )
...
* update name
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-28 13:25:31 +00:00
Peter Goodspeed-Niklaus
95736d1bf1
Companion for Decouple Staking and Election - Part 3: Signed Phase ( #2793 )
...
* Companion for Decouple Staking and Election - Part 3: Signed Phase
https://github.com/paritytech/substrate/pull/7910
* remove some config types
* allow up to 5 signed submissions on polkadot and kusama
* signed phase is equal induration to unsigned phase
* use chain defaults for base and per-byte deposits; >= 16 SignedMaxSubmissions
* use a small but non-trivial solution reward
* reduce signed deposit per byte fee
* reduce signed reward, adjust polkadot expected soln size
* copy submit benchmark from substrate
* demo calculating an appropriate fee for the signed reward
Unfortunately, this doesn't work: it needs to be a constant function,
and AFAIK there's no way to make a trait method constant.
* SignedRewardBase is 1.5x the fee to submit a signed solution
* all chains use deposit byte of base per 50k
* update Substrate
* cargo update -p pallet-election-provider-multi-phase
Co-authored-by: parity-processbot <>
2021-06-28 14:36:20 +02:00
Squirrel
dcb08fd533
Use associated constant for max ( #3375 )
2021-06-28 11:32:33 +02:00
Bastian Köcher
ab6c79ecb6
Use wasm-builder from git ( #3354 )
...
* Use wasm-builder from git
This brings new features like compressed runtimes out of the box.
* chore: update wasm builder dep. from 3.0.0 to master
* Fix tests
* Update node/core/pvf/tests/it/main.rs
Co-authored-by: Sergei Shulepov <sergei@parity.io >
Co-authored-by: chevdor <chevdor@gmail.com >
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-06-28 10:34:47 +02:00
Martin Pugh
022e8bc11c
Bump versions & spec_versions ( #3368 )
...
* bump versions & spec_versions
* bump Cargo.lock
2021-06-25 12:59:14 +02:00
Shawn Tabrizi
acec54a74b
Don't allow bids for a ParaId where there is an overlapping lease period ( #3361 )
...
* add already leased
Co-Authored-By: parity-processbot <>
* add unit test
Co-Authored-By: parity-processbot <>
* add integration test and fix
Co-Authored-By: parity-processbot <>
* better doc
Co-Authored-By: parity-processbot <>
* Update runtime/common/src/slots.rs
* Update runtime/common/src/slots.rs
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/common/src/integration_tests.rs
* Update runtime/common/src/integration_tests.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_auctions.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_crowdloan.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_slots.rs
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_common::slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_common_slots.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-25 10:56:58 +00:00