Seun Lanlege
4ac621292a
test runner ( #7665 )
2021-03-24 11:28:26 +01:00
Shawn Tabrizi
49acd6bd09
Allow Root to Edit a Crowdloan Configuration ( #2666 )
...
* Allow Root to Edit a Crowdloan Configuration
* Update crowdloan.rs
* add test
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-03-24 11:21:10 +01:00
Shawn Tabrizi
ffe4bf151c
Fix Crowdloan Dissolve and Add Auction Cancel ( #2665 )
...
* Check fund depositor calls dissolve
* add auction cancel too
* use drain api rather than `iter` + `take`
* add test and benchmarks
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-03-24 11:20:15 +01:00
Guillaume Thiolliere
aeff56260c
remove outdated comment ( #8442 )
2021-03-24 10:06:41 +00:00
André Silva
ee8e7f1bcd
grandpa: speed up tests ( #8439 )
...
* grandpa: tests: add peers with authority role
* grandpa: tests: manually wake-up poll_fn future
2021-03-24 09:56:25 +01:00
Alexander Theißen
d98a3c7942
contracts: Reduce the API surface ( #8359 )
...
* contracts: Remove types and storage from the public interface
* contracts: Remove current_schedule() getter
* contracts: Improve documentation
* Update README.md
* Fix integration test
2021-03-24 08:09:19 +00:00
Denis Pisarev
db3cdca001
CI: fix env file location ( #2657 )
...
* CI: fix env file location
* Increase payable nominators per validator (#2637 )
* inc
* cargo run --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 --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 --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/
* Add test
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
* Add debug messaes to the bridge actions (#2668 )
* more approval voting instrumentation (#2663 )
* more approval voting instrumentation
* fix `unapproved_candidates`
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Add Parachain Onboarding to Rococo (#2660 )
* Add Parachain Onboarding Pallets to Rococo
* remove propose_parachain
* add back para sudo wrapper
* Revert "remove propose_parachain"
This reverts commit 38b7c33c817964c9f8ad48531a72aede83670291.
* turn propose_parachains into validator_manager
* Update runtime/rococo/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* update origin
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Improve logging (#2669 )
* Improve logging
* Review feedback
* Fix some warning and some further logging changes
* Fix up CI for new labels (#2673 )
* Fix up CI/CD for the new labels.
* Fix labels
* [CI] Require D*-audit labels for any runtime changes (#2617 )
* update generate_release_text.rb
* add checks for audit labels for runtime changes
* fix check_labels.sh
* use has_runtime_changes in check_runtime.sh
* add D1-trivial label
* fix check_labels.sh
* Tweak Rococo Settings For Onboarding Testing (#2671 )
* Tweak Rococo Settings
* rococo: use CurrentBlockRandomness wrapper in auctions
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
* Fix check-labels.yml for forked repos (#2677 )
* fix check-labels.yml for forked repos
* update labels
* CI: pass VERSION variable to SimNet
* CI: chore
* CI: fix env file location
* CI: pass VERSION variable to SimNet
* CI: chore
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Martin Pugh <pugh@s3kr.it >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-03-23 20:49:41 +01:00
Guillaume Thiolliere
7df563d471
remove unused ( #2676 )
...
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-03-23 20:33:26 +01:00
Guillaume Thiolliere
d343683ca9
improve doc ( #8437 )
2021-03-23 17:40:52 +01:00
Martin Pugh
d11bf20a3c
Fix check-labels.yml for forked repos ( #2677 )
...
* fix check-labels.yml for forked repos
* update labels
2021-03-23 17:37:45 +01:00
Bastian Köcher
4d680a5107
Update Substrate & Polkadot ( #375 )
...
* Update Substrate & Polkadot
* Remove `can_set_code` for now
2021-03-23 15:54:40 +01:00
Guillaume Thiolliere
1602f8dd2d
Add tracing logic in pallet macro for hooks and dispatchables ( #8305 )
...
* span in hooks
* add span for dispatchable
* Update frame/support/src/lib.rs
* Update frame/support/src/lib.rs
Co-authored-by: David <dvdplm@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: David <dvdplm@gmail.com >
2021-03-23 15:53:46 +01:00
Alexander Theißen
1f911ddb61
Expose block number in seal_random ( #8329 )
...
* Allow contract callable functions to specify the module
* Add new version of `seal_random`
* Fix overlong lines
* Fix benchmarking code
* Update README.md
* Replace Module by Pallet
2021-03-23 13:48:36 +00:00
Shawn Tabrizi
fcb215332f
Tweak Rococo Settings For Onboarding Testing ( #2671 )
...
* Tweak Rococo Settings
* rococo: use CurrentBlockRandomness wrapper in auctions
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-03-23 14:35:27 +01:00
Steve Biedermann
f9b6c869a3
Improve remote-externalities ( #8397 )
...
* make builder generic to allow using different hash types
* expose "cache", "block_number" and "modules" as cli options for live state
* Change Builder to be generic over Block instead of Hash
add rpc method to get hash from block number
allow passing of block numbers and hashes
* fix live tests
* fix formatting in utils/frame/remote-externalities/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* change cli to only accept block hashes
break up lines that were too long
use starts_with instead of match s.get
use unwrap_or_default instead of unwrap_or(Vec::new())
* improve error message
* fix indentation
* replace Block with sp_runtime::testing::Block
* Move cache test out of remote-test feature tests
Add cache file (contains only "Proxy" module) for local test
* simplify match expression to and_then
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Combine the two cfg attributes into one
Co-authored-by: David <dvdplm@gmail.com >
* Restrict visibility of test_prelude use statements to crate level
* Fix usage of and_then
* Rename cache to snapshot
* Remove fully qualified path for Debug
* Refine naming. snapshot to state_snapshot
* Remove unnecessary comment
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: David <dvdplm@gmail.com >
2021-03-23 13:23:07 +00:00
Gavin Wood
b5b0ef592e
Fungibles trait and impl for Assets pallet ( #8425 )
...
* Fungibles trait and impl for Assets pallet
* Comment & whitespace
* Fixes
* Fix up CI/CD for the new labels.
* New labels.
* Fix labels
* Fix labels
* Whitespace
* Bump impl version.
* Fix accidental change
* Fixes
* Questionable fix.
* Better benchmark
2021-03-23 14:10:36 +01:00
Martin Pugh
82fa27d68a
[CI] Require D*-audit labels for any runtime changes ( #2617 )
...
* update generate_release_text.rb
* add checks for audit labels for runtime changes
* fix check_labels.sh
* use has_runtime_changes in check_runtime.sh
* add D1-trivial label
* fix check_labels.sh
2021-03-23 13:15:08 +01:00
Gavin Wood
3c8b9271c4
Fix up CI for new labels ( #2673 )
...
* Fix up CI/CD for the new labels.
* Fix labels
2021-03-23 12:17:29 +01:00
Gavin Wood
956262a182
Fix CI for new labels ( #8432 )
...
* Fix up CI/CD for the new labels.
* New labels.
* Fix labels
* Fix labels
* Fix accidental change
2021-03-23 12:10:03 +01:00
Bastian Köcher
edb36153b1
Improve logging ( #2669 )
...
* Improve logging
* Review feedback
* Fix some warning and some further logging changes
2021-03-23 11:57:59 +01:00
Shawn Tabrizi
59ef1850f6
Add Parachain Onboarding to Rococo ( #2660 )
...
* Add Parachain Onboarding Pallets to Rococo
* remove propose_parachain
* add back para sudo wrapper
* Revert "remove propose_parachain"
This reverts commit 38b7c33c817964c9f8ad48531a72aede83670291.
* turn propose_parachains into validator_manager
* Update runtime/rococo/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* update origin
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-23 11:47:34 +01:00
Alexander Theißen
0c91f60e13
contracts: Update deduct block when a contract is excempted ( #8418 )
2021-03-23 10:15:40 +00:00
Robert Habermeier
a80b2bbf13
more approval voting instrumentation ( #2663 )
...
* more approval voting instrumentation
* fix `unapproved_candidates`
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-23 11:10:54 +01:00
Pierre Krieger
fb922e2794
Refactor NotifsHandler::poll ( #8422 )
...
* Refactor a bit NotifsHandler::poll
* Avoid some spurious wake-ups
2021-03-23 10:02:07 +00:00
Pierre Krieger
bbc3ad3cfc
Add debug messaes to the bridge actions ( #2668 )
2021-03-23 10:52:30 +01:00
Kian Paimani
b208a81764
Increase payable nominators per validator ( #2637 )
...
* inc
* cargo run --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 --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 --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/
* Add test
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-03-23 08:53:05 +00:00
Pierre Krieger
3edfdead0f
Optimize the peerset a bit ( #8416 )
...
* Only allocate slots for the relevant peer set
* Do a pre-check before calling has_free_outgoing_slot
* Oops, fix infinite loop
2021-03-22 16:51:57 +00:00
Denis Pisarev
80ba1f2cda
CI: fix env file location ( #8417 )
2021-03-22 14:57:58 +01:00
Denis Pisarev
0a80f7b752
CI: address the bug with .env ( #8404 )
2021-03-22 12:02:20 +01:00
Pierre Krieger
5087634ccd
Rename GenericProto to Notifications ( #8415 )
...
* Rename GenericProto to Notifications
* Small comment fix
2021-03-22 10:32:47 +00:00
Denis Pisarev
b67c36d411
CI: build an image and trigger simnet ( #2643 )
...
* CI: build an image and trigger simnet
* CI: think of a funny name
* CI: fix the artifact
* CI: address the bug with .env
* CI: some explanation
2021-03-22 11:01:06 +01:00
Alexander Theißen
998d190ea0
Use the log crate to output contract generated messages. ( #8403 )
2021-03-21 14:49:44 +01:00
Shaun Wang
4fd69de38e
Implement PartialEq for DispatchError. ( #8407 )
2021-03-20 20:50:53 -04:00
Kian Paimani
6435296cc5
Companion for substrate/pull/8113 (Unleash multi phase) ( #2432 )
...
* Almost make it work.
* Make the runtimes build
* Some fixes
* Make the whole thing compile
* Apply suggestions from code review
* Fix review comments
* remove unused.
* nit
* Fix
* "Update Substrate"
* bump tx-version
Co-authored-by: parity-processbot <>
2021-03-20 12:13:14 +00:00
Kian Paimani
0c69651830
Decouple Staking and Election - Part 2.1: Unleash Multi Phase ( #8113 )
...
* Base features and traits.
* pallet and unsigned phase
* Undo bad formattings.
* some formatting cleanup.
* Small self-cleanup.
* Make it all build
* self-review
* Some doc tests.
* Some changes from other PR
* Fix session test
* Update Cargo.lock
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Some review comments
* Rename + make encode/decode
* Do an assert as well, just in case.
* Fix build
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Las comment
* fix staking fuzzer.
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Add one last layer of feasibility check as well.
* Last fixes to benchmarks
* Some more docs.
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Some nits
* It all works
* Some self cleanup
* Update frame/staking/src/lib.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* remove most todos.
* Round of self-review.
* Fix migration
* clean macro
* Revert wrong merge
* remove fuzzer stuff.
* Self review
* Update frame/staking/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* review comments
* add logs
* Add tests to demonstrate the capacity of the snapshot.
* Replace upgrade
* Last touches
* Fix benchmakrs
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* remove unused stuff
* Fix tests.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-03-20 08:43:47 +00:00
Gavin Wood
fd860501b0
Make work for no_std ( #8402 )
2021-03-19 15:47:28 -04:00
Bernhard Schuster
df3fef3fd9
bump reed-solomon-novelpoly to v0.0.3 ( #2650 )
2021-03-19 18:05:06 +01:00
Bernhard Schuster
ea6294fa79
restructure polkadot-node-jaeger ( #2642 )
2021-03-19 16:51:16 +01:00
Sebastian Thiel
4ad027079f
Change spelling of 'PoVBlocks' to be consistent with other polkadot docs ( #373 )
2021-03-19 13:14:22 +01:00
Guillaume Thiolliere
28fa5c2b6c
Compute yearly inflation on-chain allowing to change x_ideal according to number of slots. ( #8332 )
...
* new crate
* Update frame/staking/reward-fn/src/lib.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* fix doc
Co-authored-by: Gavin Wood <gavin@parity.io >
2021-03-19 09:32:22 +01:00
Robert Klotzner
59640a38bc
Don't accept incoming connections for collators ( #2644 )
...
* Don't accept incoming connections for collators
on the `Collation` peer set.
* Better docs.
2021-03-19 07:20:38 +00:00
Bastian Köcher
15ae5dd410
Improve the logging ( #2645 )
2021-03-18 23:28:43 +00:00
Bastian Köcher
c727799531
Better description for assert in frame-session genesis ( #8399 )
...
* Better description for assert in frame-session genesis
There is an assert that checks that an account exists, after setting a
key. However, this assert isn't very self-descriptive.
* Update frame/session/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-03-18 20:24:05 +01:00
sacha-l
33fefc258c
doc(frame): [nitpicks] ( #8396 )
2021-03-18 17:20:02 +01:00
Arkadiy Paronyan
6437740acf
Update for the new substrate client API ( #2570 )
...
* Update for the new substrate client API
* Code review suggestions
* Update substrate
2021-03-18 13:42:53 +01:00
Bernhard Schuster
928a03c179
integrate faster erasure code ( #2608 )
...
Breaks compatibility for distributing PoV and PersistentValidationData between validators.
Ref #2442
2021-03-18 13:25:58 +01:00
Arkadiy Paronyan
4a0d6d9490
Storage chains: indexing, renewals and reference counting ( #8265 )
...
* Transaction indexing
* Tests and fixes
* Fixed a comment
* Style
* Build
* Style
* Apply suggestions from code review
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Code review suggestions
* Add missing impl
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* impl JoinInput
* Don't store empty slices
* JoinInput operates on slices
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-18 11:46:27 +00:00
Bastian Köcher
f69f79cc20
Improve logging in network gossip ( #8389 )
...
* Improve logging in network gossip
This adds some more information to the logging output to get a better
understanding when something fails.
* Update client/network-gossip/src/state_machine.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-03-18 12:16:42 +01:00
Shaun Wang
9047bbb392
Companion for #8372 (Replace 'Module' with 'Pallet' in construct_runtime macro) ( #2629 )
...
* Replace 'Module' with 'Pallet'.
* "Update Substrate"
* fix babe usage
* fix benchmark
Co-authored-by: parity-processbot <>
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-03-18 10:10:17 +00:00
Shaun Wang
2e5522444a
Replace 'Module' with 'Pallet' in construct_runtime macro ( #8372 )
...
* Use 'Pallet' struct in construct_runtime.
* Fix genesis and metadata macro.
* Fix 'Pallet' type alias.
* Replace 'Module' with 'Pallet' for all construct_runtime use cases.
* Replace more deprecated 'Module' struct.
* Bring back AllModules and AllPalletsWithSystem type, but deprecate them.
* Replace deprecated 'Module' struct from merge master.
* Minor fix.
* Fix UI tests.
* Revert UI override in derive_no_bound.
* Fix more deprecated 'Module' use from master branch.
* Fix more deprecated 'Module' use from master branch.
2021-03-18 08:50:08 +00:00