Mara Robin B
2cc30515d8
bump spec_version to 9190 ( #5291 )
2022-04-08 11:48:52 +00:00
Shawn Tabrizi
4d837bac88
Custom Slots Migration for Fund Index Change ( #5227 )
...
* new migration
* use new migration in runtime
2022-04-07 10:51:37 -04:00
Stephen Shelton
2433de588a
Replace TransactionByteFee with LengthToFee ( #5028 )
...
* Replace TransactionByteFee with LengthToFee
* s/ConstantModifierFee/ConstantMultiplier/
* fmt
* Remove duplicate import
* fmt
* Update runtime/test-runtime/src/lib.rs
* update lockfile for {"substrate"}
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-04-07 13:13:32 +00:00
Oliver Tale-Yazdi
c8cdf9fc03
Integrate benchmark-overhead command ( #5137 )
...
* Integrate benchmark-overhead command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Beauty fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove constants:: module
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update block+extrinsic weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Update block+extrinsic weights"
This reverts commit d77bf977f6bca0b1ded35daa2fd54b97e18a67db.
* Revert "Remove constants:: module"
This reverts commit 2d3bcd0212c438f6b96755900a01762592d90265.
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-04-01 10:34:40 +00:00
Shawn Tabrizi
37b8bc4886
Migrate Slot Depositors in Crowdloan Migration ( #5173 )
...
* Also migrate lease depositors
* bump spec version
* Update runtime/common/src/crowdloan/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-30 18:41:08 +00:00
Georges
7793796bd2
Adding Fallback on election failure ( #5093 )
...
* Adding `Fallback` on election failure
Use the newly introduced `BoundedOnChainSequentialPhragmen`
and `UnboundedOnChainSequentialPhragmen`
* Adding `BoundedOnchainExecution`
after changes in substrate
* Introducing `ExecutionConfig`
from `frame_election_provider_support::onchain`
* `OnChainSequentialPhragmen` > `OnChainSeqPhragmen`
Renaming to have a shorter name
* `BoundedOnchainExecution` -> `BoundedExecution`
And `UnboundedOnchainExecution` -> `UnboundedExecution`
* `Fallback` back to `NoFallback`
`UnboundedExecution` for `GovernanceFallback`
* Update runtime/test-runtime/src/lib.rs
* update lockfile for {"substrate"}
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: parity-processbot <>
2022-03-26 14:27:39 +00:00
Shawn Tabrizi
cbd6570c56
Companion for Update Bounty Deposit ( #11014 ) ( #5183 )
...
* update bounty deposit config
* fix
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-25 11:09:32 -04:00
Kian Paimani
b1f9fb2aaa
companion for validator self-vote in bags ( #5088 )
...
* companion for validator self-vote in bags
* fix
* cargo update -p sp-io
2022-03-23 15:31:03 +00:00
Georges
1656c4cd02
Companion to Implementing MaxEncodedLen for generate_solution_type #11032 ( #5145 )
...
* Fixing `generate_solution_type`
This is needed after changes to substrate
* `VoterSnapshotPerBlock` -> `MaxElectingVoters`
* rename `SizeBound` to `MaxVoters`
* cargo update -p sp-io
* ignore failing test
* spell-check
* fix pub OffchainRepeat
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-23 13:18:57 +00:00
Kian Paimani
4d4f6bc9c9
lower kusama staking limits ( #5000 )
2022-03-23 10:47:58 +00:00
Kian Paimani
20da356434
Companion for #10956 ( #5136 )
...
* make it build
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-19 13:04:07 +00:00
Georges
1c443c65ef
Companion to Moving NposSolution to frame #11031 ( #5112 )
...
* using `frame_npos_elections_solution_type`
* forget to commit one change
* substrate pallet renaming
* `Support` moved to frame in substrate
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-16 22:03:25 +00:00
Shawn Tabrizi
a69330f081
Add Child Bounties to Polkadot and Kusama ( #4863 )
...
* add to kusama
* polkadot too
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Update Cargo.lock
* Update runtime/kusama/src/lib.rs
* Update runtime/polkadot/src/lib.rs
* import
Co-authored-by: Parity Bot <admin@parity.io >
2022-03-16 13:41:16 +00:00
Georges
22229991fa
Companion to Move sp-npos-elections-solution-type to frame-election-provider-support #11016 ( #5090 )
...
* using `frame_npos_elections_solution_type`
* forget to commit one change
* substrate pallet renaming
* cargo update -p sp-io
Co-authored-by: kianenigma <kian@parity.io >
2022-03-14 11:38:49 +00:00
Oliver Tale-Yazdi
eec58039f1
Parachain runtime dependent weights ( #5091 )
...
* Prepare for parachain runtime dependent weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Lockfile
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-03-12 19:37:24 +00:00
Oliver Tale-Yazdi
2b8f6e9d0a
Runtime dependent weights ( #5064 )
...
* Copy Substrate weights into each runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Define weights per runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Do the same for test-runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Generate multiplier tests via macro
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix CI
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Change rococo tests to use ExtrinsicBaseWeight
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix imports
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck on
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Spellcheck
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Re-Export weight constants in the runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Prepare for cumulus companion
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-03-11 16:36:08 +00:00
Dan Shields
6fc2da146f
Bump all spec version to 9180 and versions to 0.9.18 ( #5083 )
...
* bump all spec version to 9180 and versions to 0.9.18
* all to 0.9.18
* lock update
2022-03-11 10:19:47 +01:00
Mara Robin B
114b82fab6
bump transaction_version ( #5074 )
...
* kusama: bump transaction_version
* polkadot: bump transaction_version
* westend: bump transaction_version
2022-03-10 11:49:46 +01:00
Zeke Mostov
b13bb87870
Use updated bags list: Companion to #10997 ( #5065 )
...
* Use updated bags list: Companion to #10997
* Use Score, not Value
* update lockfile for {"substrate"}
* Fix match_types
* Fix
Co-authored-by: parity-processbot <>
2022-03-10 10:02:15 +01:00
Robert Habermeier
49f7e5cce4
Finish migration to v2 primitives ( #5037 )
...
* remove v0 primitives from polkadot-primitives
* first pass: remove v0
* fix fallout in erasure-coding
* remove v1 primitives, consolidate to v2
* the great import update
* update runtime_api_impl_v1 to v2 as well
* guide: add `Version` request for runtime API
* add version query to runtime API
* reintroduce OldV1SessionInfo in a limited way
2022-03-09 14:01:13 -06:00
Kian Paimani
511344e86c
Remove balancing iterations from OCW miners ( #4995 )
...
* remove random balancing from unsigned solution
* tweak miner a bit
* add comments
* lower kusama staking limits
* Revert "lower kusama staking limits"
This reverts commit 8ccccbb65a97b78505ef71a796698bb067cc6ba0.
* Update utils/staking-miner/src/dry_run.rs
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
* last review
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2022-03-02 21:52:42 +00:00
Zeke Mostov
c73d76b50d
Add MaxUnlockingChunks to staking configs; Companion to #10670 ( #4823 )
...
* Add MaxUnlockingChunks to staking configs; Companion #10670
* Try fix tracing dep
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-02 00:26:55 +00:00
Falco Hirschenberger
fc919376ba
Add benchmarking for parachain runtime ump pallet ( #3889 )
...
* Claim grounds, not working yet.
* still wip, nothing to see
* Module visibility problem
* Add benchmarks for all parachain-enabled chains
* Add missing mock weights
* Fix mock weight info
* Add max-weight to extrinsic weight
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* sorting declarations
* Use a maximum size message to benchmark worst-case
* remove warning
* Fix msg size overflow in tests
* Use benchmarked weight in PostInfo
* Update runtime/parachains/src/ump.rs
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* Delete obsolete file
* Compile fix
* Fix spelling
* Add benchmark for `UmpSink::process_upward_message`
It benchmarks the time to process a message, mainly the size-dependent
decoding time. This is used interally for refunding weight from
`service_overweight`
* Fix warning
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Give mock weights for tests a name instead of ()
* Add benchmark for `initializer_on_new_session` aka.
`perform_outgoing_para_cleanup`
* Remove unnescessary pub specifier and change folding to a for loop
suggestions by @pepyakin
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update runtime/parachains/src/ump.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add comment on weight calculation and expected slight overestimation
* Introduce a size bound constant for upward messages
* Use KiB not kB for message size bound
* Enforce max-message size bound
* Use a const for upward message size bound.
* Decrease max_upward_message_sizes to 50KiB as suggested by @pepyakin
* Fix creating overweight messages
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* Remove unused variable
* Rename benchmark function to the function actually benchmarked and some
code cleanup
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/rococo/src/weights/runtime_parachains_ump.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::ump --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_ump.rs
* Better variable naming
* Fix build
* Fix build
* Fix some remarks from @pepyakin
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: emostov <32168567+emostov@users.noreply.github.com >
2022-02-26 08:52:55 +00:00
Mara Robin B
9afb3a2ea7
bump transaction_version ( #4956 )
...
* westend: bump transaction_version
* polkadot: bump transaction_version
* kusama: bump transaction_version
2022-02-22 09:09:05 +00:00
Bastian Köcher
217d5275c4
Companion for Remove u32_trait ( #4920 )
...
* Companion for `Remove u32_trait`
* update lockfile for {"substrate"}
* FMT
Co-authored-by: parity-processbot <>
2022-02-14 22:56:35 +01:00
Kian Paimani
99728fd214
Remove stale migrations post 9.16 release ( #4848 )
...
* Remove stale migrations post 9.16 release
* Remove more
* Bring back migration
* enact migration
* nit
* Fix warn
* Fix westend
* Fix build
2022-02-14 11:16:28 +01:00
Kian Paimani
da78d0a4dc
Add proxy type for Kappa Sigma Mu ( #4851 )
2022-02-12 18:00:18 -07:00
Shawn Tabrizi
d5f5127354
Allow two Parachains to swap ( #4772 )
...
* add support for parachain to parachain swap
* enable swaps on kusama
* sanity test in paras_registrar
* express more errors
* finish up tests
* fmt
* make fields pub
* refactor integration tests to use real accounts
* Update Crowdloan Account to FundIndex (#4824 )
* update fund account to use index
* fix integration tests
* Update runtime/common/src/crowdloan.rs
* finish parachain swap test
* format
* fix warning
* fix spacing
* fix formatting
* write migrations
* add migration
* fixes
* more fixes to migration
* Update runtime/common/src/crowdloan/mod.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* Update runtime/common/src/paras_registrar.rs
* Update migration.rs
* extract swap function
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-02-12 17:16:22 +00:00
Mara Robin B
167df32561
Bump version ( #4904 )
...
* Bump spec_version
* Bump version to 0.9.17
2022-02-11 20:43:39 +01:00
Chevdor
7e9a58fc99
Version bumps to v0.9.16 and 9160 ( #4767 )
...
* Bump spec_version
* Bump version to 0.9.16
2022-02-02 15:22:32 +01:00
Mara Robin B
ff5230e4fc
Bump transaction_version for polkadot, kusama, & westend ( #4831 )
...
* bump transaction_version for kusama
* bump transaction_version for polkadot
* bump transaction_version for westend
2022-02-02 14:33:48 +01:00
Oliver Tale-Yazdi
88a4a748be
Add baseline benchmarks ( #4777 )
...
* Don't merge this
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* Add baseline benches
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Don't merge this"
This reverts commit d0fcc4f9cf83492862618c3b254cb6589f1b1831.
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/frame_benchmarking_baseline.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_benchmarking::baseline --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/frame_benchmarking_baseline.rs
* Add weight modules
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Apply suggestions from code review
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-01-30 19:37:13 +00:00
Georges
d306d64e73
Companion for better way to resolve Phase::Emergency via governance #10663 ( #4757 )
...
* Adding `GovernanceFallback` after changes to
substrate
* Update Substrate
* Update Substrate again
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-01-27 15:43:35 +01:00
Georges
922eb606c3
Companion for Use proper bounded vector type for nominations #10601 ( #4709 )
...
* Fixing polkadot after subtrate changes
`MAX_NOMINATIONS` was changed to `MaxNominations`
* Fixing some more places
* Apply suggestions from code review
* update lockfile for {"substrate"}
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2022-01-25 20:38:47 +01:00
Oliver Tale-Yazdi
cc1201ef27
Use define_benchmarks! ( #4760 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-01-21 17:12:45 +00:00
Kian Paimani
3cb2d62665
HRMP benchmarks ( #3876 )
...
* wip template for hrmp benchmarks
* add all of the benchmarks, first draft
* File was not saved :/
* cargo +nightly fmt
* Use configs
* add configs
* Fix rococo
* Final touches
* revert fmt changes, one last time
* Fix wrappings
* Fix a bunch of tests
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs
* add to westend
* actually use everything
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs
* Update runtime/parachains/src/hrmp.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* use real weight in wnd
* reorg
* minor cleanup
* weigh some of the internal stuff as well
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_hrmp.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::hrmp --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_hrmp.rs
* add files
* Master.into()
* add validation
* fmt
* fmt
* final fixes
* all runtimes build
* undo formatting
* Update runtime/parachains/src/hrmp.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* non-controversial changes
* do it the parachain-way: use const instead of type configs for simplicity.
* borrow assert_storage_consistency_exhaustive
* move assert_storage_consistency_exhaustive to Pallet, so it can be reused for benchmarks as well.
* fix typo
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Sergey Shulepov <s.pepyakin@gmail.com >
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-01-21 13:42:39 +00:00
Gavin Wood
fe7c34bbff
Mainnets have upper bound on treasury bond required (companion for #10689 ) ( #4739 )
...
* Mainnets have upper bound on treasury bond required
* Update runtime/common/src/impls.rs
* Update runtime/polkadot/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Bump
* Update Substrate
Co-authored-by: RRTTI <raul@justopensource.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-01-19 21:26:10 +00:00
zqhxuyuan
c0ed54f1df
make xcm_config public ( #4731 )
2022-01-17 18:39:17 +00:00
Zeke Mostov
7ef476c241
Change EraIndex import path: companion #10671 ( #4728 )
...
* Change EraIndex import path: companion #10671
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-01-17 03:09:43 +00:00
Alexander Popiak
401540eefc
Add fast-runtime Cargo Feature for Quick Test Runs ( #4332 )
...
* add fast-runtime feature for reduced session times
* make democracy periods fast on fast-runtime
* propagate fast-runtime feature through cargo.toml files
* add fast motion and term durations to Kusama
* Update runtime/westend/Cargo.toml
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* set session time to 2 minutes to avoid block production issues
* formatting
* update Substrate
* set democracy fast periods back to 1min
* set launch period and enactment period to 1 block in fast-runtime
* remove unnecessary westend period configs
* add prod_or_test macro to allow specifying prod, test and env values for parameter types
* move prod_or_test macro into common module and use it consistently
* rename macro to prod_or_fast
* cargo +nightly fmt
* bump impl_versions
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* add note that env variable is evaluated at compile time
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* newline
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* cargo fmt
* impl_version: 0
* impl_version: 0
* use prod_or_fast macro for LeasePeriod and LeaseOffset
* use prod_or_fast macro in WND and ROC constants
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Giles Cope <gilescope@gmail.com >
2022-01-13 20:08:24 +00:00
Kian Paimani
12d1600267
Fix the migrations for upcoming release ( #4692 )
2022-01-13 06:52:03 +00:00
Keith Yeung
185e301fdd
Move XCM runtime configurations into their own files ( #4644 )
...
* Move XCM runtime configurations into their own files
* Update copyright year
* Fix compilation errors
* Import XCM types in westend runtime unit tests
2022-01-11 09:09:34 +00:00
Kian Paimani
d5cb81a62a
Fix locked deposits of Nicks pallet ( #4656 )
...
* refund the lost deposit of historical nick module
* Fix doc
* add comments etc.
* guard it better
* more log
* fix build
2022-01-07 15:05:54 +00:00
Kian Paimani
18532b671a
Fully enable bags-list pallet in polkadot runtime ( #4653 )
...
* Fully enable bags-list pallet in polkadot runtime
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: Parity Bot <admin@parity.io >
2022-01-05 12:27:29 +00:00
Sergei Shulepov
91aff5d341
runtime-api: add validation_code_hash API ( #4629 )
...
This is the first step to close
https://github.com/paritytech/polkadot/issues/4524
2021-12-28 20:16:03 +00:00
Andronik Ordian
b342ae11d3
session-info: add new fields + migration ( #4545 )
...
* session_info: v2 + migration
* use primitives::v2
* use polkadot_primitives::v2
* impl primitives::v2
* fix approval-voting tests
* fix other tests
* hook storage migration up
* backwards compat (1)
* backwards compat (2)
* fmt
* fix tests
* FMT
* do not reexport v1 in v2
* fmt
* set storage version to 1
Co-authored-by: Javier Viola <javier@parity.io >
2021-12-27 08:01:30 +00:00
cheme
48dc675047
Companion for substrate#9732 ( #4104 )
...
* merge master (do not compile)
* fix
* lock
* update lock
* Update to refactoring.
* runtime version
* fmt
* remove trie patch
* remove patch
* No layout alias for bridge proof.
* update depupdate depss
* No switch until migration.
* master lock
* test
* test
* Revert "test"
This reverts commit 57325ef73332bf4b054aa4a667bb716fcf8a0d89.
* Revert "test"
This reverts commit ce74d0e2062806f72c0e9e9ca07b14165f43521e.
* rename feature
* state version as parameter, use the feature only on runtimes.
* update
* update to state version in runtime
* state version from storage
* update lockfile for substrate
Co-authored-by: parity-processbot <>
2021-12-24 09:27:35 +00:00
Adrian Catangiu
30423f796b
Companion for Substrate#10445 ( #4506 )
...
* runtimes: use updated BeefyApi
* update lockfile for substrate
2021-12-21 18:08:49 +02:00
Sergei Shulepov
3cb138d236
pvf-precheck: hook up runtime API ( #4542 )
...
This commit hooks up the API provided by #4457 to the runtime API
subsystem. In a following PR this API will be consumed by the PVF
pre-checking subsystem.
Co-authored-by: Chris Sosnin <chris125_@live.com >
Co-authored-by: Chris Sosnin <chris125_@live.com >
2021-12-21 15:15:30 +01:00
Doordashcon
f4cd958ef1
Update Polkadot ( #4561 )
...
* add existential deposit
* cargo +nightly fmt
* add EXISTENTIAL_DEPOSIT to runtimes
2021-12-20 10:44:23 +01:00