Robert Habermeier
1ae121ff27
Ignore redundant dispute messages ( #4854 )
...
* ignore duplicate dispute votes
* fmt and TODOs
* tests
* fmt
2022-02-07 15:54:56 -06: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
Bastian Köcher
bb69c82cc5
collation-generation: Support compressed PoVs directly ( #4825 )
...
This adds support for returning a compressed PoV directly to the
collation generation. This is mainly to not requiring to compress a PoV
twice.
2022-02-07 20:14:08 +01:00
omadoyeabraham
de8462ec2b
Ensure invulnerables have associated validator keys before they are set ( #812 )
...
* Added check to ensure invulnerables have associated validator keys before they are set
* Added check to ensure invulnerables have associated validator keys before they are set
* Update pallets/collator-selection/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Added test for associated validators when setting invulnerables
* FMT
Co-authored-by: Omadoye Abraham <abraham.o@turing.com >
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-07 16:42:37 +00:00
Bastian Köcher
59cddb9f23
Forward enable_overseer_always ( #4858 )
...
Cumulus actually uses the `build_full` function. I missed that.
2022-02-07 16:05:53 +00:00
Heorhii Lutsenko
2fb4258890
Corrected description of clear_attribute extrinsic ( #10729 )
2022-02-07 12:47:56 +00:00
nanocryk
a2251208ef
make inner field of IdentityFields pub ( #10773 )
2022-02-07 12:33:24 +00:00
Mara Robin B
b5a268e69b
ci: fix publish-runtimes for parachains containing - in name (v2) ( #959 )
2022-02-07 11:41:47 +00:00
Alexander Samusev
8ee165c2c1
[ci] Fix scheduled pipeline ( #4855 )
...
* [ci] Fix scheduled pipeline
* empty commit for pipeline rerun
2022-02-07 11:48:56 +01:00
Niklas Adolfsson
188840dca1
staking miner: spawn separate task for each block ( #4716 )
...
* staking miner: use config for emergency solution
Fixes #4678
* bump jsonrpsee
* run `monitor_cmd_for` until the connection is closed
* new tokio task for submit_and_watch xt
* re-use header subscription
* update jsonrpsee + simplify code
* revert polkadot runtime changes
* fix grumbles
* Update utils/staking-miner/src/monitor.rs
* grumbles: fix logs + nits
2022-02-07 11:21:56 +01:00
Bernhard Schuster
aa2af6a460
allow overseer to be enabled anyways ( #4840 )
...
Closes #4763
2022-02-07 10:46:27 +01:00
Arkadiy Paronyan
ca5daec14f
More efficient WASM instance memory decommit on macos ( #10801 )
...
* More efficient WASM instance memory decommit on macos
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Updated error message
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-02-07 10:14:52 +01:00
Gavin Wood
a6891951fb
Referenda and Conviction Voting pallets ( #10195 )
...
* Initial draft of new referendum state machine.
* Docs
* Fixes
* Fixes
* Add conviction-voting pallet
* Basic build
* Building
* Some TODOs
* Tests building
* Add missing file
* Basic lifecycle test
* Add couple of tests
* Another test
* More tests
* Fixes
* Fixes
* Formatting
* Fixes
* Tests
* Fixes
* Fixes
* More tests
* Formatting
* First few benchmarks
* First few benchmarks
* Defered queue servicing
* More testing
* Benchmarks
* Fiddly benchmark
* Final nudge benchmarks
* Formatting
* Formatting
* Finished up benchmarks
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_referenda --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/referenda/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Events finished
* Missing file
* No GenesisConfig for Referenda
* Formatting
* Docs
* Docs
* Docs
* Per-class conviction voting
* New test & mock utils
* More tests
* Tests
* Tests finished 🎉
* Benchmarking stuff
* Fixes
* Test harness
* Test harness
* Benchmarks for Conviction=Voting
* Benchmarking pipeline complete
* Docs
* Formatting
* Remove unneeded warning
* Fix UI tests
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_conviction_voting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/conviction-voting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Docs
* Update frame/conviction-voting/src/vote.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* update sp-runtime version
* MEL Fixes for Referenda and Conviction Voting (#10725 )
* free maxencodedlen
* more maxencodedlen
* more MEL
* more mel
* disable storage info
* More Referenda Patches (#10760 )
* basic fixes
* fix benchmarking
* fix license
* prevent panic in curve math
* fmt
* bump crate versions
* Update mock.rs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-02-06 12:51:12 +01:00
Doordashcon
5956c70a58
Add Setter for XCMP QueueConfigData ( #931 )
...
* add QueueConfigData setter
* update weights
* syntax change
* add test case
* fix Result error
* cargo fmt
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
* update
* one call per set
* cargo fmt
* cargo fmt
* mutate method
* cargo fmt
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2022-02-05 11:47:31 +00:00
girazoki
074ff19dbc
maybe_total_supply in pallet-assets ( #10799 )
...
* maybe_total_supply in pallet-assets
* Update frame/assets/src/functions.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-05 11:06:44 +00:00
Alexander Gryaznov
d5c8593566
contracts: is_contract(address) and caller_is_origin() are added to API ( #10789 )
...
* is_contract() and caller_is_origin() added to Ext API
* is_contract() exposed in wasm runtime.rs
* + test for is_contract()
* + seal_is_contract benchmark
* caller_is_origin() exposed to wasm/runtime.rs and covered by a test
* + seal_caller_is_origin benchmark
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* identation fix for benchmark macroses; test cosmetic improvement
* benchmark fix
* + is_contract() wasm test
* + caller_is_origin() wasm test
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* is_contract() to borrow param instead of taking ownership
* phrasing improved
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* fixed wasm tests according to @athei feedback
* dead code warnings suppressed by unstable-interface attributes
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-04 19:13:00 +00:00
Keith Yeung
89fa61125e
Make some UI test expectations crisper ( #10791 )
...
* Make some UI test expectations crisper
* Update frame/support/test/tests/construct_runtime_ui/undefined_genesis_config_part.rs
* Update UI test expectations
* Missing newlines
* More whitespace issues
2022-02-04 15:42:13 +00:00
Mara Robin B
03ac127508
ci: fix publish-runtimes for rococo-parachain (or any other -parachain) failing on incorrect wasm path ( #957 )
2022-02-04 15:41:47 +00:00
Oliver Tale-Yazdi
24b796bfa4
Make offences benchmark runnable ( #10782 )
...
* Make offences benchmark runnable
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_offences --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/offences/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Revert bench-bot
This reverts commit 73d0cb2e47e93e035af80013991b6a2e5fe2b1ed.
Co-authored-by: Parity Bot <admin@parity.io >
2022-02-04 12:03:28 +00:00
Ignacio Palacios
56d89ab041
Update command for running benchmarks ( #954 )
...
* Update command for running benchmarks
* add --locked
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
Co-authored-by: Chevdor <chevdor@users.noreply.github.com >
2022-02-03 17:41:44 +00:00
Chevdor
16ecb3648e
Add a few items to the release checklist and move the doc away ( #4844 )
2022-02-03 18:27:49 +01:00
Andrew Jones
07d4a6743e
Bump sp-keyring ( #10790 )
2022-02-03 16:58:16 +00:00
Alexander Samusev
12f3e943b1
[ci] revert #4779 ( #4843 )
2022-02-03 16:24:45 +01:00
Shawn Tabrizi
21d0cf0eea
Introduce ModuleError struct ( #10776 )
...
* better partial eq impl
* introduce module error
* fmt
* import module error
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fixes
* fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-03 13:02:45 +00:00
Bernhard Schuster
5b06cc23d6
[chore] runtime split tests ( #4834 )
2022-02-03 09:12:41 +01:00
Lldenaurois
f7564591e7
Add tests to ensure session is set correctly in OnChainScrapingVotes ( #4821 )
...
Co-authored-by: Bernhard Schuster <bernhard@ahoi.io >
2022-02-02 18:40:21 +01:00
Oliver Tale-Yazdi
99fae0cd57
bench-cli: Support JSON output ( #10771 )
...
* Add dependencies
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make benchmark results serializable
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add `--json[-file]` options
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Enable JSON output
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use specific serde version
Polkadot does not compile otherwise.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review comments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Review comment: fs::write
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-02 14:25:13 +00: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
Alexander Theißen
e8e6470fb7
Bump substrate ( #4828 )
...
* Bump substrate
* Update Substrate
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-02-02 14:45:09 +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
radupopa2010
f69ca55712
feat(cicd): expire artifacts after 7 days ( #4833 )
...
We received several alerts about disk space in gitlab server.
Even if we have 1TiB allocated, disk space is consumed very fast.
We need to address this problem by expiring artifacts after 7 days.
2022-02-02 13:56:41 +01:00
Pierre Besson
46f4396657
Substrate alerts rules update ( #10642 )
...
* .maintain/monitoring: Update substrate prometheus alert rules
* match the `substrate_` metrics prefix in alerts instead of `polkadot_`, following changes in #9543
* remove the filtering on polkadot|kusama domain for NumberOfFileDescriptorsHigh alert
* .maintain/monitoring: Update substrate Grafana dashboards
* match the `substrate_` metrics prefix instead of `polkadot_` in dashboards, following changes in #9543
* .maintain/monitoring: make the NumberOfFileDescriptorsHigh alert only apply for metrics tagged with 'chain'
2022-02-02 13:06:25 +01:00
Bernhard Schuster
0ef0108264
reduce forwarded number of disputes by one order of magnitude
2022-02-02 12:39:39 +01:00
Alexander Theißen
d1f490f454
wasm-builder: Fall back to release profile for unknown profiles ( #10775 )
2022-02-02 12:34:52 +01:00
Arkadiy Paronyan
e337f0be4b
Enable download of future forks ( #10739 )
...
* Enable download of future forks
* Fixed external tests
2022-02-02 11:29:36 +00:00
dependabot[bot]
5c589926ce
Bump node-fetch from 2.6.5 to 2.6.7 in /scripts/scale_encode_genesis ( #946 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 11:00:53 +01:00
dependabot[bot]
77ae936b57
Bump node-fetch from 2.6.1 to 2.6.7 in /scripts/generate_genesis_values ( #945 )
...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch ) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases )
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7 )
---
updated-dependencies:
- dependency-name: node-fetch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 23:38:57 +01:00
Alexander Theißen
3938c1cb62
Release pallet-contracts-primitives ( #10772 )
...
* Bump sp-storage
* Bump sp-rpc
* Bump sp-io
* Bump sp-trie
* Bump sp-state-machine
* Bump sp-externalities
* Bump sp-keystore
* Bump sp-application-crypto
* Bump pallet-contracts-primitives
* Bump sp-core
* Bump sp-runtime-interface
* Bump sp-wasm-interface
* Bump sp-runtime
* Bump sp-storage
* Update lock file
* Revert "Bump sp-storage"
This reverts commit f86c6db1ae334e28207b658fd90714ade0332e3b.
* Update lock file
2022-02-01 20:38:02 +01:00
Mara Robin B
21fb5199a3
ci: fix broken reference to rococo srtool digest ( #943 )
2022-02-01 17:07:10 +00:00
Alexander Samusev
d9ab8ff576
[ci] Fix docker credentials ( #4826 )
2022-02-01 16:11:55 +01:00
Oliver Tale-Yazdi
dbb3f24e3e
Add MaxEncodedLen to implement_fixed! ( #10768 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-02-01 14:45:16 +01:00
Chris Sosnin
8a98067d96
Remove unused cli param ( #941 )
2022-02-01 12:03:54 +01:00
Hussein Ait-Lahcen
ba3255376e
derive MaxEncodedLen for MultiSignature ( #10765 )
2022-02-01 09:34:53 +00:00
Alexander Theißen
0bfbf5a89f
Bump strum from 0.22 -> 0.23 ( #10758 )
2022-01-31 20:04:12 +00:00
sandreim
50828ad145
Update pvf metric histogram buckets ( #4818 )
...
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-01-31 17:28:58 +00:00
Alexander Theißen
f3168c3fa0
Add production profile to substrate-wasm-builder ( #10747 )
...
* Add production profile to wasm builder
* Fix profile detection
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Replace panic! by println! + exit
* Default to `release` for wasm on debug builds
* Replaced unwrap by expect
* Update all weights
Rerun on the bm2 server.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Parity Bot <admin@parity.io >
2022-01-31 14:16:26 +00:00
Keith Yeung
d793334bbd
Add the ability to suspend or resume XCM execution on the XCMP queue ( #896 )
...
* Add the ability to suspend or resume XCM execution on the XCMP queue
* Rename QueueActive to QueueSuspended
* Add the ability to suspend the DMP queue
* Rename XCMP to DMP in comments where appropriate
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Add a bypass for XCMP queue suspension
* Revert "Add the ability to suspend the DMP queue"
This reverts commit 363ca09b41e40fce3f2740e7ab78f5c54781ca5c.
* Change controller origin to either root or council-issued origin
* Rename to ControllerOriginConverter
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2022-01-31 12:12:09 +00:00
Bastian Köcher
21d5573b25
pallet-scheduler: Fix migrations V2 to V3 ( #10757 )
...
* pallet-scheduler: Fix migrations V2 to V3
V2 already supported origins, so we need to move them over instead of setting it to `Root`. Besides
that it also removes the custom `Releases` enum and moves it over to `StorageVersion`.
* Fixes
* Fixes
* 🤦
2022-01-31 11:43:42 +00:00
Alexander Theißen
39704979fe
Bump wasm-instrument 0.1.0 -> 0.1.1 ( #10749 )
...
* Bump wasm-instrument 0.1.0 -> 0.1.1
* Fix benchmark
2022-01-31 10:05:30 +00:00
Andronik
db4cff49ca
parainherent: fix session in OnChainVotes
2022-01-30 21:50:40 +01:00