Keith Yeung
ef3b001b4e
Companion for paritytech/substrate#12183 ( #5971 )
...
* Companion for paritytech/substrate#12183
* Fixes
* Fixes
* Fixes
* cargo fmt
* Fixes
* Fixes
* Fixes
* cargo fmt
* Update runtime/parachains/src/paras_inherent/mod.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-09-08 05:05:03 +00:00
Keith Yeung
6ce4d45175
Remove Ord impl for Weights V2 and add comparison fns ( #12183 )
...
* Remove Ord impl for Weights V2 and add comparison fns
* Remove TODO
* Update frame/multisig/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove unused import
* cargo fmt
* Fix tests
* Fix more tests
* cargo fmt
* Fix more tests
* Update frame/contracts/src/wasm/mod.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update weight benchmarking templates
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-08 04:22:41 +00:00
dependabot[bot]
c119f290db
Bump url from 2.2.2 to 2.3.0 ( #1604 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.2...v2.3.0 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-minor
...
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-09-07 23:55:59 +02:00
Oliver Tale-Yazdi
09ec484139
Add --header to benchmark overhead + storage ( #12204 )
...
* Add header to 'overhead' command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add header to 'storage' command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update READMEs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <info@kchr.de >
* .as_ref() and fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-07 21:16:54 +00:00
Keith Yeung
99d8111c67
Move Get and bounded types to sp-core ( #12203 )
...
* Move Get and bounded types to sp-core
* Fixes
* cargo fmt
* Fixes
2022-09-07 15:41:45 +00:00
dependabot[bot]
a5e7161893
Bump thiserror from 1.0.33 to 1.0.34 ( #1596 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
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-09-07 16:43:45 +02:00
Alexander Theißen
d786e623df
Update contract weights ( #12192 )
...
* Dummy commit
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Co-authored-by: command-bot <>
2022-09-07 14:49:44 +01:00
dependabot[bot]
c594a0ca51
Bump docker/setup-buildx-action from 1.7.0 to 2.0.0 ( #5976 )
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/f211e3e9ded2d9377c8cadc4489a4e38014bc4c9...dc7b9719a96d48369863986a06765841d7ea23f6 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
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-09-07 12:09:24 +00:00
Sasha Gryaznov
d8e9fff3e4
[contracts] API host functions: remove seal_ name prefix + enable aliasing ( #12126 )
...
* works but ugly
* refactored + renamed host fns
* fixed tests
* fix benchmarks
* updated marco docs
* Update frame/contracts/proc-macro/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fix for the duplicated prefixed alias bug + test
* refactored a bit
* fix warnings + try to make macro rustdoc compile
* fmt after clearing
* examples update + nocompile
* add seal_ prefixes to unstable host functions
* updated after a review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-07 08:54:17 +00:00
Frederik Gartenmeister
bc1f31ccc0
Add features ( #1602 )
2022-09-07 00:22:50 +02:00
Roman Useinov
4a9e53c9e6
[Companion] Metadata delete on dissolve_pool ( #5955 )
...
* [Companion] Metadata delete on dissolve_pool
* deps upd
* merge
Co-authored-by: parity-processbot <>
2022-09-06 13:11:18 +00:00
NingLin-P
56e536f6e8
staking: avoid proportional slashing leak dust into chunks that should not be slashed ( #12058 )
...
* replace slash ratio with remaining ratio
Signed-off-by: linning <linningde25@gmail.com >
* little refactor
Signed-off-by: linning <linningde25@gmail.com >
* fix test
Signed-off-by: linning <linningde25@gmail.com >
* fix typo
Signed-off-by: linning <linningde25@gmail.com >
* revert refactor
Signed-off-by: linning <linningde25@gmail.com >
* rounding up instead of remaining ratio
Signed-off-by: linning <linningde25@gmail.com >
* address comment
Signed-off-by: linning <linningde25@gmail.com >
* Update frame/nomination-pools/test-staking/src/lib.rs
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/nomination-pools/test-staking/src/lib.rs
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-06 12:24:31 +00:00
Sergej Sakac
2795b5fd29
Uniques: Small fix in docs ( #12143 )
...
* small fix in docs
* Update frame/uniques/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update lib.rs
* Update lib.rs
* Update lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-09-06 12:16:29 +00:00
Muharem Ismailov
66b06e7563
fix release report generation script ( #1599 )
2022-09-06 11:40:16 +00:00
Piotr Mikołajczyk
5c843b3015
Companion for: try-runtime::follow-chain - keep connection ( #5968 )
...
* Adjust to the new API
* Remove mutability
* Async constructor
* unwrap result
* do not panic
* suggestion
* leftover
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-06 08:46:12 +00:00
Piotr Mikołajczyk
198f94f931
try-runtime::follow-chain - keep connection (#12167 )
...
* Refactor RPC module
* Add flag to `follow-chain`
* Multithreading remark
* fmt
* O_O
* unused import
* cmon
* accidental removal reverted
* remove RpcHeaderProvider
* mut refs
* fmt
* no mutability
* now?
* now?
* arc mutex
* async mutex
* async mutex
* uhm
* connect in constructor
* remove dep
* old import
* another take
* trigger polkadot pipeline
* trigger pipeline
2022-09-06 08:01:35 +00:00
Muharem Ismailov
b9de4af2ef
fix release report generation script ( #1597 )
2022-09-06 08:53:17 +01:00
Roman Useinov
d213e95784
[Fix] Make sure pool metadata is removed on pool dissolve ( #12154 )
...
* [Fix] Make sure pool metadata is removed on pool dissolve
* add migration
* remove_metadata helper removed
* fix typo and add a comment
* fix pre_upgrade
* fix migration
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* address comments
* fix comments
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* address comments
* permissions fix
Co-authored-by: parity-processbot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-09-06 06:34:29 +00:00
Davide Galassi
293ff64fd0
Companion - Read babe config parameters from runtime ( #5842 )
...
* Read babe config parameters from runtime
* Trigger pipeline
* Trigger pipeline (after PR title change)
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-06 06:23:13 +00:00
Davide Galassi
83aec6f93a
Fetch Babe configuration from runtime state ( #11760 )
...
* Fetch babe config data from runtime state
* Some renaming
* More renaming
* Final nits
* Fix tests and benches
* Rename to in BabeConfiguration
* Remove duplicate babe parameter description
Already specified over the 'PRIMARY_PROBABILITY' constant value
* trigger pipeline
* trigger pipeline
2022-09-05 17:41:32 +00:00
dependabot[bot]
ea9ce919e9
Bump tokio from 1.19.2 to 1.21.0 ( #1592 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.19.2 to 1.21.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.19.2...tokio-1.21.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
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-09-05 19:36:08 +02:00
Robert Klotzner
7e4bea2578
Double approval checking timeout. ( #5951 )
2022-09-05 16:45:25 +00:00
Muharem Ismailov
caaa2dc6f3
Companion for substrate#12179 ( #1593 )
...
* remove funcs not included in ProposalProvider trait anymore
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-09-05 15:33:26 +00:00
Muharem Ismailov
f919894c84
Alliance pallet: split force_set_members call ( #12179 )
...
* Alliance pallet: split force_set_members call
* use counts for event
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
Co-authored-by: command-bot <>
2022-09-05 15:08:50 +00:00
Stephen Shelton
b6f67b08ed
Impl transaction-payment GenesisConfig with NextFeeMultplier support ( #12177 )
...
* Impl GenesisConfig with NextFeeMultplier support
* Update lib.rs
* Use documented const
* Unit test multiplier genesis
* fmt
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-09-05 14:37:25 +00:00
Nazar Mokrynskyi
efa04ed70d
Enforce blocks response limit ( #12146 )
2022-09-05 14:06:20 +00:00
Squirrel
2b80555902
drive by spelling fixes ( #12175 )
2022-09-05 16:04:14 +02:00
Squirrel
d759e31d12
Update Integration tests Statemine & Statemint ( #1526 ) ( #1575 )
...
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com >
2022-09-05 13:49:07 +00:00
Tsvetomir Dimitrov
accc08c3aa
Doc comments for metrics in provisioner ( #5967 )
2022-09-05 15:48:35 +03:00
Adrian Catangiu
84acfd5f50
beefy: initialize voter from genesis and fix initial sync ( #11959 )
...
* client/beefy: use backend instead of client where possible
* client/beefy: initialize voter from genesis
Now that we have justifications import, we can drop the "lean beefy"
behaviour and start building justifications chain from Genesis with
containing all past sessions' mandatory blocks justifications.
* client/beefy: walk finality tree_route to catch session changes
* client/beefy: fix block import
During initial block import blocks are not finalized, so trying to
validate and append justifications within block import fails (for
initial network sync imported blocks).
Changes:
- Move justification validation to _after_ `inner.block_import()`,
so block is imported in backend and runtime api can be called to
get the BEEFY authorities for said block.
- Move append-to-backend for imported BEEFY justification to voter,
because it already has the required logic to BEEFY-finalize blocks
only after GRANDPA finalized them.
- Mark voting rounds as concluded when finalizing through
imported justifications as well as when finalizing through voting.
* client/beefy: valid justifications are one per block number
The only way we'd get _different_ _validated_ justifications for same
block number is if authorities are double voting, which will be handled
later.
* client/beefy: process incoming justifs during major sync
* client/beefy: correct voter initialization
BEEFY voter should resume voting from either:
- last BEEFY finalized block,
- session start,
whichever is closest to head.
* client/beefy: test voter initialization
* client/beefy: impl review suggestions
Signed-off-by: acatangiu <adrian@parity.io >
2022-09-05 13:47:15 +03:00
Piotr Mikołajczyk
1fabf067d0
try-runtime::follow-chain - execute all blocks (#12048 )
...
* extract subscription
* FinalizedHeaders
* Fool of a Took
* testability
* tests
* review comments
* clippy
2022-09-05 07:26:45 +00:00
dependabot[bot]
40846deed5
Bump clap from 3.2.19 to 3.2.20 ( #1591 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.2.19 to 3.2.20.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/v3.2.20/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.19...v3.2.20 )
---
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-09-04 00:03:13 +02:00
Dmitry Markin
b3480bd51f
Use custom type for ProtocolName ( #5963 )
...
* Use new ProtocolName in peer_set.rs
* Use new ProtocolName for request-response protocols
* Use new ProtocolName in polkadot-network-bridge
* Import and conversion fixes
* Use ProtocolName re-exported in sc_network
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-04 00:02:01 +02:00
Dmitry Markin
24d09fe8c7
Use custom type for ProtocolName ( #12172 )
...
* Add ProtocolName custom type
* Use new ProtocolName in sc_network_common
* Use new ProtocolName in sc_network
* Use new ProtocolName for BEEFY and GRANDPA
* Use new ProtocolName for notifications
* Use new ProtocolName in sc_network (part 2)
* Use new ProtocolName in sc_network_gossip
* Use new ProtocolName in sc_offchain
* Remove unused imports
* Some more fixes
* Add tests
* Fix minor import issues
* Re-export ProtocolName in sc_network
* Revert "Re-export ProtocolName in sc_network"
This reverts commit 8d8ff71927e7750757f29c9bbd88dc0ba181d214.
* Re-export ProtocolName in sc_network
* Remove dependency on sc-network-common from beefy-gadget
2022-09-03 20:34:47 +00:00
Alexander Theißen
09a52ef882
Emit events for inter contract calls ( #12136 )
...
* Add topics to contract events
* Add `Call` events
* Fix compilation for no_std
* Added docs
2022-09-03 08:03:36 +00:00
Stephen Shelton
3bbfc46d5d
Reflect benchmarking fn signature change ( #5959 )
...
* Reflect benchmarking fn signature change
* fmt
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-02 22:24:36 +00:00
Stephen Shelton
5fb97da337
Add benchmarking support for digest items ( #12159 )
...
* Add benchmarking support for digest items
* fmt
2022-09-02 21:33:26 +00:00
Keith Yeung
36e721bf2a
Companion for paritytech/substrate#12157 ( #1590 )
...
* Remove RefTimeWeight
* [ci] Apply cargo-fmt
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: parity-processbot <>
2022-09-02 19:36:55 +00:00
dependabot[bot]
fa75315e8e
Bump dlmalloc from 0.2.3 to 0.2.4 ( #5927 )
...
Bumps [dlmalloc](https://github.com/alexcrichton/dlmalloc-rs ) from 0.2.3 to 0.2.4.
- [Release notes](https://github.com/alexcrichton/dlmalloc-rs/releases )
- [Commits](https://github.com/alexcrichton/dlmalloc-rs/compare/0.2.3...0.2.4 )
---
updated-dependencies:
- dependency-name: dlmalloc
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-09-02 21:36:48 +02:00
dependabot[bot]
23c3657fef
Bump thiserror from 1.0.32 to 1.0.33 ( #1586 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: thiserror
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-09-02 21:13:59 +02:00
Keith Yeung
41eff346cb
Companion of paritytech/substrate#12157 ( #5964 )
...
* Remove RefTimeWeight
* Fixes
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-02 19:12:06 +00:00
Shawn Tabrizi
23a81ee1e3
Remove RefTimeWeight ( #12157 )
...
* update api
* update
* remove unused
* remove `one` api
* fix unused
* fmt
* add saturating accrue
* remove `Weight::new()`
* use some macros
* div makes no sense
* Update weight_v2.rs
* missed some
* more patch
* fixes
* more fixes
* more fix
* more fix
* remove RefTimeWeight
* Update frame/contracts/src/storage.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* not needed
* Fixes
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-09-02 18:19:49 +00:00
Bastian Köcher
4257576828
Companion for https://github.com/paritytech/substrate/pull/12147 ( #1587 )
...
* Companion for https://github.com/paritytech/substrate/pull/12147
* update lockfile for {"substrate", "polkadot"}
* Fix tests
Co-authored-by: parity-processbot <>
2022-09-02 17:33:17 +00:00
Muharem Ismailov
a9a2fdca7b
Alliance pallet: fix func name, fix migration weights ( #12174 )
...
* Alliance pallet: fix func name, fix migration weights
* update comment order
2022-09-02 18:54:30 +02:00
Javier Viola
9db100e228
bump zombienet version, support new weights ( #1589 )
2022-09-02 16:06:58 +02:00
Squirrel
fd36b6d0c8
9270 Backport of Align versions for runtimes ( #1517 ) ( #1574 )
...
* Align versions for runtimes (#1517 )
* update cargo lock
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
2022-09-02 09:17:43 +00:00
Andronik
f0c74f6bc5
candidate-validation: info logs on failure ( #5957 )
2022-09-02 09:31:44 +02:00
Bastian Köcher
907144496e
Do not drop the task_manager for benchmarking stuff ( #12147 )
...
We can not drop the `task_manager` for benchmarking stuff, because otherwise stuff that may needs
this feature (like background signature verification) will fail. Besides the base path setup is
moved to `SharedParams` directly. Meaning any call to `base_path` will now directly return a tmp
path when `--dev` is given.
2022-09-02 07:27:00 +00:00
Oliver Tale-Yazdi
2ff56f8bc8
Add StorageNoopGuard ( #12163 )
...
* Add StorageNoopGuard
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix import
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix feature gate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix feature gate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use sp-std
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-09-01 21:39:30 +00:00
Shawn Tabrizi
2c1e88522c
Companion for Weight v1.5 Follow Up ( #1584 )
...
* fixes
* oopsie
* [ci] Apply cargo-fmt
* fixes
* [ci] Apply cargo-fmt
* fixes
* fix cumulus template
* fix merge
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: parity-processbot <>
2022-09-01 19:25:05 +00:00