Gavin Wood
23d22e0882
Bounties use SpendOrigin ( #12808 )
...
* Bounties use SpendOrigin
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* tests: increase spend limits
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix child-bounties tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/bench-bot.sh" pallet dev pallet_bounties
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2022-12-01 15:52:36 +01:00
dependabot[bot]
3b2ec9eade
Bump array-bytes from 4.2.0 to 6.0.0 ( #1919 )
...
Bumps [array-bytes](https://github.com/hack-ink/array-bytes ) from 4.2.0 to 6.0.0.
- [Release notes](https://github.com/hack-ink/array-bytes/releases )
- [Changelog](https://github.com/hack-ink/array-bytes/blob/main/CHANGELOG )
- [Commits](https://github.com/hack-ink/array-bytes/compare/v4.2.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: array-bytes
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 15:30:18 +01:00
dependabot[bot]
e388792a78
Bump serde from 1.0.147 to 1.0.148 ( #1929 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.147 to 1.0.148.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 14:24:31 +00:00
Muharem Ismailov
11aabd352c
Kusama: approve/reject treasury prop by treasurer ( #6354 )
2022-12-01 12:22:37 +00:00
Sebastian Kunert
edee3d557b
Remove more protocols from minimal collator ( #1927 )
2022-12-01 10:35:47 +01:00
dependabot[bot]
40d413c7cd
Bump async-trait from 0.1.58 to 0.1.59 ( #1921 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.58 to 0.1.59.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.58...0.1.59 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 23:24:48 +00:00
dependabot[bot]
f28e99e448
Bump clap from 4.0.27 to 4.0.29 ( #1928 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.27 to 4.0.29.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.27...v4.0.29 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 23:57:34 +01:00
Alexander Theißen
7350107f0b
Companion for contracts: Replace cargo feature unstable-interface with config ( #1916 )
...
* contracts: Add `UnsafeUnstableInterface`
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-11-30 14:48:55 +00:00
dependabot[bot]
ad08445268
Bump syn from 1.0.103 to 1.0.104 ( #1918 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.103 to 1.0.104.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.103...1.0.104 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 14:24:39 +00:00
Alexander Theißen
edce3ead3b
contracts: Replace cargo feature unstable-interface with config ( #12787 )
...
* Replace cargo feature with config
* Update frame/contracts/proc-macro/src/lib.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2022-11-30 14:19:14 +00:00
Aaro Altonen
ec064e5edf
Don't announce blocks in sync_to_tip_when_we_sync_together_with_multiple_peers ( #12783 )
...
* Fix syncing test
* cargo fmt
* Fix test
2022-11-30 14:37:28 +01:00
Bastian Köcher
995e530939
sc-transaction-handler: Fix potential crashes on exit ( #12807 )
...
This fixes some potential crashes in the stream handling in `sc-transaction-handler`.
2022-11-30 14:27:12 +01:00
Adrian Catangiu
9333c0338c
update lockfile ( #1923 )
2022-11-30 14:39:39 +02:00
ordian
063aab236f
guide: remove refences to outdated secondary checkers ( #6309 )
...
* guide: remove refences to outdated secondary checkers
* Update roadmap/implementers-guide/src/glossary.md
* guide: remove refences to Fisherman
* revert changes to roadmap/parachains.md
2022-11-30 13:28:35 +01:00
Marcin S
28a4e90912
Use CPU clock timeout for PVF jobs ( #6282 )
...
* Put in skeleton logic for CPU-time-preparation
Still needed:
- Flesh out logic
- Refactor some spots
- Tests
* Continue filling in logic for prepare worker CPU time changes
* Fix compiler errors
* Update lenience factor
* Fix some clippy lints for PVF module
* Fix compilation errors
* Address some review comments
* Add logging
* Add another log
* Address some review comments; change Mutex to AtomicBool
* Refactor handling response bytes
* Add CPU clock timeout logic for execute jobs
* Properly handle AtomicBool flag
* Use `Ordering::Relaxed`
* Refactor thread coordination logic
* Fix bug
* Add some timing information to execute tests
* Add section about the mitigation to the IG
* minor: Change more `Ordering`s to `Relaxed`
* candidate-validation: Fix build errors
2022-11-30 13:17:31 +01:00
joe petrowski
c61860e9be
support opengov calls in proxy definitions ( #6366 )
2022-11-30 12:17:09 +00:00
yjh
fa19235782
chore: remove unused traits for wasm interface ( #12792 )
2022-11-30 12:21:45 +01:00
Adrian Catangiu
3edaf1dac3
Companion for: MMR: move RPC code from frame/ to client/ ( #6369 )
...
* rpc: mmr rpc crate name change
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-11-30 11:28:48 +02:00
Adrian Catangiu
6a5bac18d2
MMR: move RPC code from frame/ to client/ ( #12805 )
...
* mmr: move MMR RPC from frame/ to client/
Signed-off-by: Adrian Catangiu <adrian@parity.io >
* client/mmr: adjust logging levels to avoid spam
* cargo fmt
* remove unused imports
Signed-off-by: Adrian Catangiu <adrian@parity.io >
2022-11-30 08:37:29 +00:00
alexgparity
9ea14e66c8
Clippyfy ( #6341 )
...
* Add clippy config and remove .cargo from gitignore
* first fixes
* Clippyfied
* Add clippy CI job
* comment out rusty-cachier
* minor
* fix ci
* remove DAG from check-dependent-project
* add DAG to clippy
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-11-30 08:34:06 +00:00
Mara Robin B
b76086c617
sync versions with current release (0.9.33) ( #6363 )
...
* westend: update transaction version
* polkadot: update transaction version
* kusama: update transaction version
* Bump spec_version to 9330
* bump versions to 0.9.33
2022-11-30 10:32:20 +02:00
dependabot[bot]
a7e0f9f404
Bump serde from 1.0.145 to 1.0.147 ( #1797 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 05:02:11 +01:00
Oliver Tale-Yazdi
04e883d310
Require rust-features check ( #12796 )
...
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move rust feature check to docker and require not to fail
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add .docker-env
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move test-rust-features check back to kubernetes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-11-29 16:19:36 +00:00
joe petrowski
8042b1cb2a
Add Collectives as Trusted Teleporter ( #6326 )
...
* add collectives as trusted teleporter
* fix statemint-specific doc
2022-11-29 16:14:47 +00:00
Marcin S
b5d5a7ee4f
Remove parity-util-mem from runtime-api cache ( #6367 )
2022-11-29 15:28:44 +00:00
Serban Iorga
4cc40bf08f
Companion for: pallet-mmr: move offchain logic to client-side gadget ( #6321 )
...
* Spawn MMR gadget when offchain indexing is enabled
* companion PR code review changes: 1st iteration
* Code review changes: 2nd iteration
* update lockfile for {"substrate"}
Co-authored-by: acatangiu <adrian@parity.io >
Co-authored-by: parity-processbot <>
2022-11-29 15:23:34 +00:00
Serban Iorga
ff439ee335
pallet-mmr: move offchain logic to client-side gadget ( #12753 )
...
* Move MMR utils methods from pallet to primitives
Signed-off-by: Serban Iorga <serban@parity.io >
* Add method to MmrApi
* Move forks expanding logic from babe to primitives
* Implement MMR gadget
* Remove prunning logic from the MMR pallet
* Code review changes: 1st iteration
* Replace MaybeCanonEngine with CanonEngineBuilder
* fix mmr_leaves_count() for kitchen sink demo
* Update client/merkle-mountain-range/src/canon_engine.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Code review changes: 2nd iteration
* fix INDEXING_PREFIX
* impl review comments
* add documentation and minor rename
Signed-off-by: Serban Iorga <serban@parity.io >
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2022-11-29 14:39:52 +00:00
Mara Robin B
97bcb6dfe4
remove executed migrations (0.9.33) ( #6364 )
2022-11-29 14:33:24 +00:00
joe petrowski
021e1463bd
Companion for Substrate 12740 ( #1898 )
...
* add helper config trait
* benchmarkhelper
* update config
* update tests
* into
* update lockfile for {"substrate", "polkadot"}
* include benchmarks in tomls
Co-authored-by: parity-processbot <>
2022-11-28 20:31:09 +00:00
joe petrowski
d56214c21f
Remove Default, HasCompact, and TypeInfo trait bounds on AssetId ( #12740 )
...
* Remove Default, HasCompact, and TypeInfo trait bounds on AssetId
* don't use default in benchmarking
* add helper trait
* add helper to assets tx payment test
* docs fixes
* i'm confused
* aha, cargo
* move affected dispatchable calls into new indices
* Helper -> BenchmarkHelper
* benchmark use of helper
* actually, don't break every call interface
* use into on AssetIdParameter
* Remove From from AssetIdParameter and use it in BenchmarkHelper
* include from
Co-authored-by: parity-processbot <>
2022-11-28 18:51:59 +00:00
Andrei Sandu
eb00a21ef7
dispute-coordinator: fix earliest session checks for pruning and import ( #6358 )
...
* RollingSession: add fn contains
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* handle_import_statements fix ancient dispute check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* work with earliest session instead of latest
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
* update comment
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io >
2022-11-28 17:43:13 +01:00
Branislav Kontur
aad3912924
Allow Sufficient Assets for XCM Fee Payment on Statemint #1884 ( #1910 )
...
* Allow Sufficient Assets for XCM Fee Payment on Statemint #1884
* Revert of removed payment.clone().into()
* Fixes
* Bring AssetFeeAsExistentialDepositMultiplier to test_asset_xcm_trader
* Fixes
2022-11-28 17:04:30 +01:00
Alexander Samusev
b108fd854b
[ci] fix implementer guide job ( #6357 )
...
* [DNM] debug implementer guide job
* remove git depth
* change git strategy
* add git depth
* try k8s runner
* fix k8s template
* test job
* fix test
* fix
* return pipeline back
* enable disabled deploy-parity-testnet
2022-11-28 16:31:49 +01:00
Marcin S
186a572907
Provide some more granular metrics for polkadot_pvf_execution_time ( #6346 )
2022-11-28 10:26:17 -05:00
Adrian Catangiu
2d4126d239
client/beefy: fix on-demand justifications sync for old blocks ( #12767 )
...
* client/beefy: fix on-demand justif sync for old blocks
When receiving BEEFY justifications for old blocks the state might
be pruned for them, in which case justification verification fails
because BEEFY validator set cannot be retrieved from runtime state.
Fix this by having the voter give the validator set to the
`OnDemandJustificationsEngine` as request information. On receiving
a BEEFY justification for requested block, the provided validator
set will be used to validate the justification.
Signed-off-by: acatangiu <adrian@parity.io >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* impl review suggestions
* client/beefy: fail initialization if state unavailable
* beefy: remove spammy log
Signed-off-by: acatangiu <adrian@parity.io >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-11-28 13:38:24 +02:00
Mattia L.V. Bradascio
893a3ad784
Add more granularity to prometheus histogram buckets ( #6348 )
...
* Add buckets below 5ms
* Add more specific histogram buckets
* Add more specific buckets
* cargo fmt
2022-11-28 11:30:27 +00:00
dependabot[bot]
b127ac8aad
Bump clap from 4.0.26 to 4.0.27 ( #1911 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.26 to 4.0.27.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.26...v4.0.27 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-27 17:40:19 +01:00
Bastian Köcher
0c934a9352
ed25519_verify: Support using dalek for historical blocks ( #12661 )
...
* ed25519_verify: Support using dalek for historical blocks
The switch from `ed25519-dalek` to `ed25519-zebra` was actually a breaking change. `ed25519-zebra`
is more permissive. To support historical blocks when syncing a chain this pull request introduces
an externalities extension `UseDalekExt`. This extension is just used as a signaling mechanism to
`ed25519_verify` to use `ed25519-dalek` when it is present. Together with `ExtensionBeforeBlock` it
can be used to setup a node in way to sync historical blocks that require `ed25519-dalek`, because
they included a transaction that verified differently as when using `ed25519-zebra`.
This feature can be enabled in the following way. In the chain service file, directly after the
client is created, the following code should be added:
```
use sc_client_api::ExecutorProvider;
client.execution_extensions().set_extensions_factory(
sc_client_api::execution_extensions::ExtensionBeforeBlock::<Block, sp_io::UseDalekExt>::new(BLOCK_NUMBER_UNTIL_DALEK_SHOULD_BE_USED)
);
```
* Fix doc
* More fixes
* Update client/api/src/execution_extensions.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Fix merge and warning
* Fix docs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2022-11-27 15:34:07 +00:00
Sebastian Kunert
3f1db7bfb0
Remove av-store, av-distribution, chain-api subsystems from minimal node ( #1903 )
...
* Remove unused subsystems
* Consume requests we are not going to answer
* Respond to incoming chunk and pov requests.
* fmt
* Improve comment and logging
* Add reputation changes
* Do not register pov-chunk-request protocol
* Remove inbound chunk request channel
* Bump Polkadot
2022-11-27 14:35:51 +00:00
ordian
5311911a39
cargo update -p sp-io ( #6351 )
2022-11-27 14:33:59 +00:00
Alexander Theißen
91a6892459
Allow try-runtime for contracts-rococo ( #1906 )
...
* Enable try-runtime for contracts-rococo
* Fix typo from merge
2022-11-27 15:28:24 +01:00
Alexander Theißen
0068716b5a
contracts: Don't put unstable functions in special module ( #12781 )
...
* Don't put unstable functions in special module
* Apply suggestions from code review
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* cargo fmt
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2022-11-27 12:27:03 +01:00
Sebastian Kunert
53d9a50c06
Add support for outbound only configs on request/response protocols ( #6343 )
...
* Add option ot add outbound_only configurations
* Improve comment
2022-11-26 10:22:09 +01:00
Vlad
c5ce79a439
Explicitly unset RUSTC_WRAPPER=sccache environment variable ( #12771 )
...
* CI: Explicitly unset RUSTC_WRAPPER=sccache environment variable
* Try with `rusty-cachier` disabled
* Re-enable `rusty-cachier` and try with the staging image
* Bring back `production` image
* Sort crates before splitting them into groups (+ some improvements) (#12755 )
* sort crates before splitting them into groups
this is useful so that crates always get routed to a specific group for a given version of the source code, which means that jobs for each batch can be reliably retried individually
* more verbose output
* misc improvements
* put uniq after sort
uniq filters by adjacent lines
* shellcheck
* rm useless backlashes
* handle edge case of no crates detected
* Revert "Sort crates before splitting them into groups (+ some improvements) (#12755 )"
This reverts commit fde839183a12a2bd51efc7143ebcddeed81ea6fa.
Co-authored-by: João Paulo Silva de Souza <77391175+joao-paulo-parity@users.noreply.github.com >
2022-11-25 21:39:21 +00:00
Muharem Ismailov
ddbf07e0b6
Collectives Alliance: Remove Founder role and veto call ( #1902 )
...
* Companion: Remove Founder role and veto call
* wieghts
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: joepetrowski <joe@parity.io >
Co-authored-by: parity-processbot <>
2022-11-25 17:58:31 +00:00
Xiliang Chen
1ee7fe3697
add EnsureWithSuccess ( #12775 )
...
* add EnsureWithSuccess
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* add docs
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: parity-processbot <>
2022-11-25 15:29:56 +00:00
cheme
5ca7dc1b87
Add total nb to trie migration rpc ( #12770 )
...
* Add total nb to trie migration rpc
* fix and format
* Use struct instead of tuple
* fixes
Co-authored-by: parity-processbot <>
2022-11-25 15:06:04 +00:00
joe petrowski
bcea0d7e7f
Allow Alliance Fellows to Give Up Voting Rights ( #12730 )
...
* allow fellows to abdicate voting rights
* rename founders to founding fellows, give equal power
* Drop FoundingFellow role and veto call (#12762 )
* drop FoundingFellow role
* drop veto call
* Storage migration to remove founder role (#12766 )
* storage migration to remove founder role
* skip migration if no members
* truncate the final fellows set if overflows
* change log - action order
* MemberAbdicated -> FellowAbdicated
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
2022-11-25 14:52:26 +00:00
Oliver Tale-Yazdi
7ed2bc7258
Fix rustdoc ( #12777 )
...
* Fix table formatting
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix sp-runtime-interface table
Using HTML now since multi-line tables are not a thing and fmt
destroys them.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* More rustdoc fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tags
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* More fixes...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use Bastis patch
Co-authored-by: Bastian Köcher <git@kchr.de >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add more backticks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* change ci image
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-11-25 15:13:38 +01:00
benluelo
50f338e1ea
update DefaultNoBound derive macro ( #12723 )
...
fix derive for empty enums
Update derive & ui tests
clean up
Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
rename variable
formatting & clippy
formatting
Co-authored-by: parity-processbot <>
2022-11-25 11:11:19 +01:00