Andronik Ordian
241b1f12a7
make runtime_api non blocking task again ( #2531 )
2021-02-26 12:04:58 +01:00
yjh
5013e7630e
chore: fix typos for contract ( #8178 )
2021-02-26 11:47:47 +01:00
Bernhard Schuster
05f74c2171
do not expect on unbounded send ( #2530 )
2021-02-26 10:46:16 +01:00
Bernhard Schuster
31327eb0c7
test: add unit test to catch missing distribution to subsystems faster ( #2495 )
...
* test: add unit test to catch missing distribution to subsystems faster
* add a simple count
* introduce proc macro to generate dispatch type
* refactor
* refactor
* chore: add license
* fixup unit test
* fixup merge
* better errors
* better fmt
* fix error spans
* better docs
* better error messages
* ui test foo
* Update node/subsystem/dispatch-gen/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/network/bridge/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/subsystem/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/subsystem/dispatch-gen/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/subsystem/dispatch-gen/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/network/bridge/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* fix compilation
* use find_map
* drop the silly 2, use _inner instead
* Update node/network/bridge/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/subsystem/dispatch-gen/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* nail deps down
* more into()
* flatten
* missing use statement
* fix messages order
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-02-26 08:10:41 +00:00
Xiliang Chen
69734bb8ed
Add an optional verifier to crowdloan ( #2248 )
...
* Add an optional verifier to crowdloan
* add tests
* verify signatures
* benchmark with signatures
* update crowdloan benchmark
* try to get keystore working in test
* rewrite to avoid traits
* Use MultiSignature and MultiSigner
* refactor and update benchmarks
* optimize check order
* fix no_std build
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-02-26 08:26:54 +01:00
Robert Habermeier
49705026e0
some initial spans for approval voting ( #2525 )
...
* some initial spans for approval voting
* add stage earlier
2021-02-25 17:56:50 +00:00
Bastian Köcher
2c904359ca
Same procedure as every day ( #345 )
2021-02-25 17:14:32 +01:00
Alexander Theißen
4bf0387237
contracts: Release as v3.0.0 and add reserved field to ContractInfoOf ( #8175 )
...
* contracts: Update README
* contracts: Add CHANGELOG.md
* contracts: Bump version to v3.0.0 and allow publish
* Typos
Co-authored-by: Andrew Jones <ascjones@gmail.com >
* Improve wording in the changelog
* contracts: Add reserved field to ContractInfoOf for future proofing
* also bump frame-benchmarking
* update lockfile
Co-authored-by: Andrew Jones <ascjones@gmail.com >
Co-authored-by: Benjamin Kampmann <ben@parity.io >
2021-02-25 17:04:48 +01:00
Benjamin Kampmann
0b4126ca40
Frame Benchmarking v3.1.0 released ( #8206 )
...
* Releasing frame-benchmarking 3.1
* bump in the entire dependency tree
2021-02-25 17:04:36 +01:00
Guillaume Thiolliere
f2436b87b5
pallet macro broke benchmarks_instance, fix by introducing benchmarks_instance_pallet ( #8190 )
...
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-02-25 16:25:08 +01:00
Andronik Ordian
4e3dba91be
small cleanup after #2518 ( #2527 )
2021-02-25 14:00:20 +01:00
Pierre Krieger
d5b308f13c
Fix networking debug_asserts ( #8200 )
...
* Fix networking debug_asserts
* Fix comment
2021-02-25 13:51:29 +01:00
Ashley
241302d0e4
Add an is_finished boolean to the grandpa warp sync response ( #8203 )
2021-02-25 12:39:30 +00:00
Guillaume Thiolliere
5232e8ad5c
allow to write pre and post runtime upgrade in pallet macro ( #8194 )
2021-02-25 11:43:48 +01:00
André Silva
2f6cadf359
Companion for Substrate #8148 ( #2523 )
...
* Pass shared_authority_set to request_response_config_for_chain
* "Update Substrate"
Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com >
Co-authored-by: parity-processbot <>
2021-02-25 09:16:59 +00:00
Jakub Pánik
f0c3656489
Add ss58 prefix for HydraDX ( #8058 )
...
* Add ss58 prefix for HydraDX
* fix formatting
2021-02-25 09:03:49 +00:00
André Silva
94c29ff666
grandpa: rewrite warp sync proof generation ( #8148 )
...
* grandpa: use AuthoritySetChanges to generate warp sync proof
* node: init grandpa warp sync protocol
* grandpa: iterator for AuthoritySetChanges
* grandpa: rewrite warp sync proof generation
* grandpa: remove old code for warp sync generation
* grandpa: fix indentation
* grandpa: fix off by one
* grandpa: use binary search to find start idx when generating warp sync proof
* grandpa: add method to verify warp sync proofs
* grandpa: remove unnecessary code to skip authority set changes
* grandpa: add test for warp sync proof generation and verification
* grandpa: add missing docs
* grandpa: remove trailing comma
2021-02-25 08:44:51 +00:00
Robert Habermeier
ae218bb608
make runtime API and chain API subsystems blocking too ( #2526 )
2021-02-25 07:26:49 +00:00
Bastian Köcher
327a203dc7
Companion for Substrate #8185 ( #2507 )
...
* Companion for Substrate #8185
https://github.com/paritytech/substrate/pull/8185
* "Update Substrate"
Co-authored-by: parity-processbot <>
2021-02-24 22:31:54 +01:00
Bastian Köcher
8a0e8ea9a6
Move proof generation to the type system level ( #8185 )
...
* Start
* Finish!!!!
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Review comments
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-02-24 20:43:50 +00:00
Robert Habermeier
3cdaa88509
spawn availability store and approval voting subsystems as blocking tasks ( #2521 )
...
* spawn availability store and approval voting subsystems as blocking tasks
* refactor
2021-02-24 14:22:48 -06:00
Bastian Köcher
c3ef81ab30
Make sure we generate a valid slot in tests ( #2520 )
...
Currently the first last timestamp is `0` and that leads to the first
slot being `0` which is reserved for genesis. There is some debug assert
in BABE that complains about this in Cumulus :D
2021-02-24 20:07:03 +00:00
Martin Pugh
5ffb8cb463
[release] Prep for v0.8.29 ( #2497 )
...
* bump version and substrate
* update weights
* bump substrate
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --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=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --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_election_provider_multi_phase --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_election_provider_multi_phase --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-02-24 20:32:34 +01:00
Bastian Köcher
a4b4264a5a
Update to latest Substrate & Polkadot ( #341 )
2021-02-24 20:15:52 +01:00
Tomasz Drwięga
3309c4366b
Display nicer inspect results. ( #8198 )
2021-02-24 20:00:00 +01:00
Robert Habermeier
4675a784a8
Revert "bump Substrate"
...
This reverts commit 3a13ef6ca8 .
2021-02-24 12:03:55 -06:00
Robert Habermeier
3a13ef6ca8
bump Substrate
2021-02-24 11:52:27 -06:00
Robert Habermeier
0fac609a61
merge approval-checking feature back into real-overseer ( #2518 )
2021-02-24 11:28:32 -06:00
Pierre Krieger
a3d749f3c5
Add some debug_asserts for #8171 ( #8181 )
2021-02-24 17:13:34 +01:00
dependabot[bot]
edbbe27b28
Bump wasm-bindgen from 0.2.69 to 0.2.70 ( #2324 )
...
Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen ) from 0.2.69 to 0.2.70.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/compare/0.2.69...0.2.70 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-24 16:17:44 +01:00
Kian Paimani
4f83b3e247
Properly use weights for the new election pallet ( #2508 )
...
* Revert some weights
* Add features
* Update lock file
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --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_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* Use read weights
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* export stuff
* Update substrate
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-02-24 14:38:22 +00:00
Kian Paimani
2398bbfaef
Migration testing CLI ( #2447 )
...
* Template
* Midway..
* Make all 3 runtimes work
* Update node/service/Cargo.toml
* undo brach updates
* fix with latest version
* Update runtime/kusama/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update runtime/rococo/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Final nits
* Update runtime/kusama/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-02-24 14:38:05 +00:00
Kian Paimani
e9f12cb29e
Update lib.rs ( #8192 )
...
Turns out the polkadot bot assumes that this guys is exported from the root of the pallet.
2021-02-24 12:43:31 +00:00
joshua-mir
7d285f7474
[multisig, insubstantial] WeightTooLow -> MaxWeightTooLow ( #8112 )
2021-02-24 09:31:49 +01:00
Bastian Köcher
76d3814e90
Make on_slot return the block with the post header ( #8188 )
...
* Make `on_slot` return the block with the post header
Before this pr `on_slot` returned the pre block. However this is wrong,
because adding some post digest changes the hash of the header. Thus,
we need to make sure to return the correct block that uses the post
header.
* Update primitives/consensus/common/src/block_import.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-02-24 08:03:05 +01:00
Wei Tang
3e3b5f9cba
Reserve ss58 prefix 48 for Neatcoin ( #8165 )
...
* Reserved ss58 prefixes for Neatcoin
* Switch to use 63
* Switch to use 48
2021-02-24 00:28:57 +01:00
Martin Pugh
6d46fc1d85
Companion for #8184 ( #2506 )
...
* remove weights for suicide
* "Update Substrate"
* Update Cargo.lock
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/
* cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --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=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
Co-authored-by: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-02-23 22:07:45 +00:00
Robert Habermeier
5683f11628
fix master: use view.iter() instead of view.heads ( #2510 )
2021-02-23 21:02:16 +00:00
Robert Habermeier
3300b53306
Approval Checking Improvements Omnibus ( #2480 )
...
* add tracing to approval voting
* notify if session info is not working
* add dispute period to chain specs
* propagate genesis session to parachains runtime
* use `on_genesis_session`
* protect against zero cores in computation
* tweak voting rule to be based off of best and add logs
* genesis configuration should use VRF slots only
* swallow more keystore errors
* add some docs
* make validation-worker args non-optional and update clap
* better tracing for bitfield signing and provisioner
* pass amount of bits in bitfields to inclusion instead of recomputing
* debug -> warn for some logs
* better tracing for availability recovery
* a little av-store tracing
* bridge: forward availability recovery messages
* add missing try_from impl
* some more tracing
* improve approval distribution tracing
* guide: hold onto pending approval messages until NewBlocks
* Hold onto pending approval messages until NewBlocks
* guide: adjust comment
* process all actions for one wakeup at a time
* vec
* fix network bridge test
* replace randomness-collective-flip with Babe
* remove PairNotFound
2021-02-23 14:12:28 -06:00
Parth
3c4ed7b234
Override RuntimeApi::authorities() to include past sessions ( #2494 )
...
* override authorities runtime call
* addressing feedback
* addressing feedback and restoring semantics
* updated helper function
* naming convention + comment
Co-authored-by: Parity <parity2305@gmail.com >
2021-02-23 13:49:46 -06:00
Martin Pugh
ab325993b4
Remove suicide from frame_system weights ( #8184 )
...
* remove suicide from frame_system weights
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --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
* Update frame/system/src/weights.rs
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-02-23 17:37:17 +00:00
Kian Paimani
eb09db2aef
Enable two phase election provider in runtimes in 'DryRun' mode ( #2476 )
...
* Apply some changes
* Make the runtimes build
* Master.into()
* Undo branch updates.
* Undo unwatned changes
* Fix deps one last time
* Fix election lookahead
* Revert deps
* Fix :P
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-02-23 16:58:00 +01:00
Bernhard Schuster
e3f776abed
feat/view: assure heads in a view are sorted ( #2493 )
...
* feat/view: assure heads in a view are sorted
Allows O(n) comparisons, adds an alternate equiv relation
which takes O(n^2) for integrity verification.
Ref #2133
* revert: remove custom PartialEq impl, there are no duplicates
* fix: do not sort the live_heads, that alters the local view
* refactor/view: heads should not be public
* chore/spellcheck: add unfinalized
* fix/view: add missing len() and is_empty() fns
* quirk
* vec is not view
* Update node/network/approval-distribution/src/tests.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/network/bridge/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Update node/network/protocol/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* fixup comment
* fix botched test
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-02-23 15:39:57 +00:00
Kian Paimani
7205eea40d
Decouple Staking and Election - Part 2 Unsigned Phase ( #7909 )
...
* 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
* 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
* Fix doc
* Mkae ci green
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 >
2021-02-23 15:46:17 +01:00
Kian Paimani
571651e326
Change a few fee/weight parameters ( #2481 )
...
* Change a few fee parameters
* Update runtime/common/src/lib.rs
2021-02-23 13:34:29 +00:00
Martin Pugh
ece23588d2
Remove v0.8.28 runtime migrations ( #2496 )
...
* remove v0.8.28 runtime migrations
* Update runtime/westend/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* commit suggestions
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-02-23 12:28:41 +00:00
Pierre Krieger
ba659f9440
Bump lru dependency ( #8182 )
2021-02-23 12:52:59 +01:00
Pierre Krieger
9e84a5405c
Add a Prometheus alert on no incoming connection ( #7517 )
2021-02-23 10:05:39 +01:00
Shaun Wang
f82489dbee
Deposit XCM execution success and fail events. ( #338 )
2021-02-23 09:27:47 +01:00
Shaun Wang
893c9a60ed
Fix XCM encoding in HRMP pallet. ( #2491 )
2021-02-22 23:21:17 +01:00