Bastian Köcher
d70d58922e
wasm-builder: Fix constant re-running of build.rs scripts. ( #11624 )
...
Recently we added the wasm binaries to the `rerun-if-changed` list. The problem with that is that
they have a later mtime than the `invoked.timestamp` file and this file's mtime is used to determine
if the `build.rs` script needs to be re-run. The solution to this is that we copy the mtime of this
`invoked.timestamp` file and add it to the wasm binaries. Then cargo/rustc doesn't constantly wants
to rerun the `build.rs` script.
2022-06-14 11:21:44 +02:00
bear
6dd3d00cf3
Add TypeInfo ( #11599 )
2022-06-14 10:48:49 +02:00
Niklas Adolfsson
e9e6916596
remove flaky rpc subscription tests ( #11653 )
2022-06-14 10:17:58 +02:00
Keith Yeung
dbe1881702
Properly implement Debug on bounded types ( #11659 )
2022-06-14 02:39:33 +00:00
Kian Paimani
ad1d171601
Allow nomination pools to chill + fix dismantle scenario ( #11426 )
...
* make pool roles optional
* undo lock file changes?
* add migration
* add the ability for pools to chill themselves
* boilerplate of tests
* somewhat stable, but I think I found another bug as well
* Fix it all
* Add more more sophisticated test + capture one more bug.
* Update frame/staking/src/lib.rs
* reduce the diff a little bit
* add some test for the slashing bug
* cleanup
* fix lock file?
* Fix
* fmt
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/nomination-pools/src/mock.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix build
* fix some fishy tests..
* add one last integrity check for MinCreateBond
* remove bad assertion -- needs to be dealt with later
* nits
* fix tests and add benchmarks for chill
* remove stuff
* fix benchmarks
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_nomination_pools --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/nomination-pools/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* remove defensive
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Bot <admin@parity.io >
2022-06-13 21:07:36 +00:00
Keith Yeung
19684de7d8
Implement PartialOrd and Ord on BoundedSlice and WeakBoundedVec ( #11655 )
...
* Implement PartialOrd and Ord on BoundedSlice and WeakBoundedVec
* More implementations of PartialEq and PartialOrd
* cargo fmt
* Fixes
2022-06-13 20:55:48 +00:00
Keith Yeung
4e2fb0af60
Implement MaxEncodedLen on pallet-beefy ( #11584 )
...
* Implement MaxEncodedLen on pallet-beefy
* Return Result in intialize_authorities
* Update docs
* Log error when authorities list gets truncated
* Update frame/beefy/src/lib.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* cargo fmt
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2022-06-13 17:53:07 +00:00
Keith Yeung
2d6b0ecc21
Move bounded type definitions to sp-runtime ( #11645 )
...
* Move bounded type definitions to sp-runtime
* cargo fmt
* Fix compile error
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move TryCollect to sp-runtime
* Write some docs
* Import missing types
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-06-13 12:31:42 +00:00
Oliver Tale-Yazdi
8c1865d2f2
MEL bound state-trie-migration ( #11639 )
...
* MEL bound state-trie-migration
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* wip
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use sp_std
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Add doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Set MaxKeyLen default to 512
Just to be sure that it will work. There is also no real penalty
from over-estimating it.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add more doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix assert_err_with_weight macro
Looks like I'm the only one using it anyway...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests that use env macro
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2022-06-13 12:17:07 +00:00
Yongjin Huang
f658ea0d99
fix pallet_uniques docs link ( #11651 )
2022-06-13 11:44:50 +00:00
dependabot[bot]
c8ce7f54b7
Bump crossbeam-utils from 0.8.5 to 0.8.8 ( #11605 )
...
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam ) from 0.8.5 to 0.8.8.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.5...crossbeam-utils-0.8.8 )
---
updated-dependencies:
- dependency-name: crossbeam-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 11:14:37 +02:00
Bastian Köcher
70d8b674a9
pallet-grandpa: Improve/Clarify docs of note_stalled ( #11623 )
2022-06-13 10:31:16 +02:00
Sergej Sakac
973b6be6f5
Added an event for cancel_proposal ( #11620 )
...
* Added an event for cancel_proposal
* test
2022-06-12 16:40:29 +00:00
Oliver Tale-Yazdi
dd2314a118
Remove storage MaxValues limits ( #11643 )
...
* Remove limits
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove more
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-06-11 17:50:16 +00:00
Tarek Mohamed Abdalla
dfda072af3
Add fixed u64 ( #11555 )
...
Co-authored-by: parity-processbot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-06-11 17:24:42 +00:00
Xiliang Chen
5788461196
pallet alliance ( #11112 )
...
* Add pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update multihash/cid and format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless deps
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add pallet-alliance into node runtime
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix has_identity
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooMantBlacklist Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add TooLongWebsiteUrlLength Error
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add remove_announcement
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Derive pallet_identity::Config and Fix test/benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add part weight for call of pallet-alliance
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove pallet_identity Config trait
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix propose arguments
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo fmt
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking of add_blacklist/remove_blacklist
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for init_members
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add benchmarking for propose/vote/veto
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix benchmarking
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove some useless
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some compile issue
* more fix
* all checks
* refactor
* refactor event
* refactor
* cleanup
* cleanup
* fix benchmarking
* fix warning
* fmt
* fix benchmarks
* with storage info
* fmt
* add new config
* fix benchmarks
* fix
* fmt
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improvements
* fix
* update docs
* rename events, errors, and functions
* make kicking events clearer
* fix
* fix tests
* fix tests
* fix runtime
* fix build
* remove unneeded change
* remove Candidate role from Alliance
* fmt grumbles
* update lock
* update recursion limit
* benchmarks
* convert-try
* benchmark assertions
* fmt ,
* cargo lock
* Update frame/alliance/src/benchmarking.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* add docs to public interfaces
* Apply suggestions from code review
Co-authored-by: Squirrel <gilescope@gmail.com >
* fix build (node)
* review
* use EitherOfDiverse
* update cargo toml
* make all dispatch class Normal
* change blacklist to unscrupulous
* formatting
* fmt oops
* rename benchmarking unscrupulous account creator
Co-authored-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: joepetrowski <joe@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
2022-06-10 18:39:26 +00:00
Keith Yeung
09b5def9b1
Use BoundedVec in aura pallet ( #11617 )
...
* Use BoundedVec in aura pallet
* cargo fmt
2022-06-10 17:20:03 +00:00
Nazar Mokrynskyi
e0e34ad45e
Better transaction pool error ( #11629 )
...
* Better transaction pool error
* Do not use `Debug` when printing errors
2022-06-10 08:58:55 +00:00
Davide Galassi
f2d578b678
Improve inspection and generation of node keys ( #11525 )
...
* Improve inspection and generation of node keys
* Lock stdout before write
* Fix typo
* Fix offset
* Remove useless code
* Set inspect-node-key 'network' option as obsolete
2022-06-09 19:55:02 +02:00
Nazar Mokrynskyi
9765f200cb
Improve docs on --keep-blocks CLI parameter and related data structures ( #11611 )
...
* Improve docs on `--keep-blocks` CLI parameter and related data structures
* Update client/db/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-06-08 10:48:46 +02:00
Sebastian Kunert
b1cc31027f
Remove without_storage_info for membership pallet ( #11591 )
2022-06-07 19:49:36 +02:00
Keith Yeung
0e3918d9fe
Implement more IntoIter traits for bounded types ( #11616 )
2022-06-07 14:32:30 +00:00
Jegor Sidorenko
7b712fa4ff
Remove a max supply record on collection's destruction ( #11593 )
...
* Remove a max supply record on collection's destruction
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2022-06-07 10:08:58 +00:00
Koute
a8c1d430ef
Fix one-by-off in BoundedSlice::try_from ( #11600 )
2022-06-06 16:17:41 +00:00
Shawn Tabrizi
946c45a7dd
MEL for Ranked Collective ( #11602 )
2022-06-06 14:47:37 +00:00
zqhxuyuan
776692c016
make era public ( #11575 )
2022-06-06 13:38:31 +00:00
Oliver Tale-Yazdi
eb4be02155
Expose Benchmarking Component Ranges ( #11545 )
...
* Add component ranges to benchmarking
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Adding component ranges to templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
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 pallet --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* tweak script to reduce diff
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/identity/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-06-03 20:43:54 +00:00
Oliver Tale-Yazdi
a2afadb123
Add host info to weight templates ( #11583 )
...
* Add host info to weight templates
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 pallet --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2022-06-03 19:46:14 +00:00
Keith Yeung
038e52f5e0
Remove #[pallet::without_storage_info] for pallet-remark ( #11590 )
2022-06-03 17:30:12 +00:00
Sergej Sakac
d09e835753
Tracable defensive errors ( #11532 )
...
* Tracable defensive errors
* small fixes
* fix
* refactored
* switched to defensive_ok_or
* Remove unnecessary type annotations and conversions
* cargo fmt
* Fixes
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-06-03 14:25:55 +00:00
Liu-Cheng Xu
6b1e871137
Expose ValidatedTransaction from transaction pool ( #11588 )
...
This is required to make a tx pool wrapper for some custom transaction validation, specificially
required to make a wrapper around the `LocalTransactionPool` implementation (https://github.com/subspace/subspace/blob/f54881a9b5/crates/subspace-service/src/pool.rs#L232-L269 ).
Related: https://github.com/paritytech/substrate/discussions/11520
2022-06-03 14:33:59 +02:00
Alexander Samusev
98f6d8e96c
[ci] use cargo nextest instead cargo test in test-linux-stable ( #11576 )
...
* [DO NOT MERGE] Experimenting with nextest
* enable jobs
* enable stages
* add comment
* create test-frame-support job
2022-06-02 21:18:59 +02:00
Bastian Köcher
3935f6a987
wasm-builder: Rerun the build if the generated file changed ( #11582 )
2022-06-02 18:48:48 +02:00
João Paulo Silva de Souza
3977de095b
reactivate check-dependent-cumulus ( #11506 )
...
* re-enable check-dependent-cumulus
* temporary: use handle-extra-dependencies
* temporary: trim CI
* CI: include build stage
* CI: include test stage
* CI: include test stage
* Revert "temporary: trim CI"
This reverts commit dcf4ae8d842bc445a065c7ccdc3b6a603034faa4.
* CI: fix weird revert
* Revert "temporary: use handle-extra-dependencies"
This reverts commit bc0dc0f21f10284a23f66fdd8509ca6df89f2586.
* CI undebug
Co-authored-by: TriplEight <denis.pisarev@parity.io >
2022-06-02 16:15:32 +02:00
Gavin Wood
58d23ef97b
Reduce call size of Referenda pallet ( #11578 )
...
* Reduce call size of Referenda pallet
* Fixes
* Fixes
* Fixes
* Docs
2022-06-02 12:41:05 +01:00
yjh
ba96e8a8f4
aura: export change_authorities and initialize_authorities ( #11468 )
...
* aura: export change_authorities and initialize_authorities
* add docs
* fix docs
2022-06-02 11:03:49 +02:00
Vlad
a084dd684f
CI: fix build-subkey-macos build job ( #11573 )
...
* CI: fix `build-subkey-macos` build job
* CI: use full path for the `CARGO_TARGET_DIR` default value
2022-06-02 11:48:12 +03:00
Vlad
7d8477b48d
rusty-cachier pipeline impovements and fixes (#11572 )
2022-06-01 19:48:53 +03:00
Gavin Wood
838dbcbe91
Helper macro for Morph impls ( #11570 )
...
* Helper macro for Morph impls
* No need to deprecate for now
* Improved macro
* Doc tests
* Grumbles
2022-06-01 17:27:47 +01:00
Bastian Köcher
bb6bbab687
Fix all warnings when building for wasm ( #11569 )
...
* Fix all warnings when building for wasm
Besides that it also enables warnings as errors for wasm builds in the CI.
* FMT
* Make clippy happy
2022-06-01 13:03:21 +00:00
Vlad
a4fdcb9a06
Don't limit test-linux-stable-int job output ( #11560 )
2022-06-01 14:28:24 +03:00
Gavin Wood
1c59b81690
Introduce SubmitOrigin to Referenda pallet config ( #11567 )
2022-06-01 11:46:06 +01:00
Gavin Wood
d6ea0e4205
Introduce set function into storage maps ( #11564 )
2022-06-01 10:48:42 +01:00
Gavin Wood
5595f10245
Ranked Collective pallet ( #11548 )
...
* Ranked Collective pallet
* Fixes
* benchmarks
* Weights
* Allow class voting in rank
Use bare ayes for calculating support.
Allow only promotion/demotion by one rank only.
Allow removal of member with rank zero only.
Use new Tally API
* Index by rank, still O(1).
* Custom vote weights
* Formatting
* Update frame/ranked-collective/src/lib.rs
* Broken :(
* origin guard; cleanup uses new API
* Formatting
* Promote/demote by rank
* Formatting
* Use new API
* Remove code in another PR
* Remove code in another PR
* Formatting
* Remove code in another PR
* Docs
* Docs
* Bump
* Fixes
* Formatting
* Fixes
2022-06-01 10:23:47 +01:00
MOZGIII
8e9639d2ff
Do not require Ord for pallet_offences::Config::IdentificationTuple ( #11563 )
2022-06-01 09:13:24 +00:00
Oliver Tale-Yazdi
f81e306cf5
Short circuit Treasury::Spend benchmark for NeverEnsureOrigin ( #11562 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-06-01 00:14:23 +01:00
Sacha Lansky
82dbaafe5f
Fix minor typos ( #11550 )
...
* Fix minor typos
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-05-31 22:18:48 +00:00
koenw
3bcf801b7e
Fix link in node-template README ( #11529 )
...
The lorri repository has moved from https://github.com/target/lorri to
https://github.com/nix-community/lorri .
2022-05-31 21:23:30 +00:00
Bastian Köcher
7f8b64c44a
Fix clippy on master ( #11559 )
2022-05-31 23:18:15 +02:00
Bastian Köcher
dbf497f06d
Sync: Improve major sync detection ( #11547 )
...
* Sync: Improve major sync detection
When we still have a full import queue, we should still report that we are in major sync mode,
otherwise validators may will already start producing blocks.
* Use median
* Review comments
2022-05-31 19:29:00 +01:00