Guillaume Thiolliere
a31637def8
Fix executive test ( #7243 )
...
* fix executive test
* add unallowed unsigned test
* better to have also unsigned pre_dispatch check tested
2020-10-01 12:40:45 +00:00
Andronik Ordian
579614d127
implement remaining subsystem metrics ( #1770 )
...
* overseer metrics: messages relayed
* provisioner metrics: cosmetic changes
* candidate selection metrics: cosmetic changes
* availability bitfields metrics
* availability distribution metrics
* PoV distribution metrics
* statement-distribution: small simplification
* statement-distribution: extract log target into a const
* statement-distribution: metrics
* address review nits
2020-10-01 12:08:03 +02:00
Bastian Köcher
693d40831d
Companion for https://github.com/paritytech/substrate/pull/7236 ( #1773 )
...
* Companion for https://github.com/paritytech/substrate/pull/7236
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-10-01 09:31:04 +00:00
Kerwin Zhu
a2c4b38eb6
permit setting treasury pallet initial funding through genesis ( #7214 )
2020-10-01 11:15:33 +02:00
Bastian Köcher
dbf4558633
Remove runtime registered extensions after execution ( #7236 )
...
* Remove runtime registered extensions after execution
This prevents a bug when an extension was registered in native, but the
native execution aborted without removing the extension again. Now, when
executing the wasm code the extension is still registered and it fails
of being registered. So, the wasm execution fails as well. This can
happen for example for the `VerificationExt`.
* Make it better
2020-10-01 09:12:05 +00:00
Xiliang Chen
8656a34289
expose add_proxy and remove_proxy ( #7189 )
...
* expose add_proxy and remove_proxy
* add getter
* bump version
* Update frame/proxy/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* add comments
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-10-01 08:58:54 +00:00
Guillaume Thiolliere
6182878933
Fix weight for inner call with new origin ( #7196 )
...
* fix weight for inner call with new origin
* fix
2020-10-01 08:24:34 +00:00
Shawn Tabrizi
a56f90fa9a
Update Treasury Config to use Propotion of Council Members ( #7235 )
...
* Update treasury config to use propotion of council members
* add `_5`
2020-10-01 01:18:32 +00:00
Wei Tang
b54769a217
pallet-evm: fix backend timestamp ( #7245 )
2020-09-30 23:02:20 +02:00
Shawn Tabrizi
721754bc6e
Improve Payout Benchmarks in Staking ( #7237 )
...
* add additional checks
* fix wasm trap
* Wasm trap?
* Clean up validators before running payout
* fix line width
2020-09-30 20:55:17 +00:00
Denis Pisarev
d089baf2d4
WIP: remove deprecated only/except clauses, build is now manual on PRs ( #1769 )
...
* change (CI): soon to be deprecated only changed to rules, build is now manual on PRs
* change (CI): add workflow to avoid doubled pipelines, remove second job
* debug (CI): unblock pipeline from waiting a manual action
2020-09-30 22:17:00 +02:00
Denis Pisarev
cdff10e1b2
WIP: remove deprecated only/except clauses ( #7229 )
...
* change (CI): remove deprecated only/except clauses
* change (CI): remove
* change (CI): debug regex
* change (CI): regex shouldn't be surrounded with quotes in `rules`
* change (CI): no quotes in `rules`
* change (CI): debug workflow
* change (CI): almost equal
* change (CI): splinters
* change (CI): some details [chaos:basic]
* change (CI): add manual substrate build on PRs
* change (CI): mistake with publish-to-crates-io
* change (CI): reapproach chaos-only; rename rules anchors [skip ci]
* change (CI): add linux and mac to manual jobs for PRs [skip ci]
* change (CI): remove `pre-v` tags rules [skip ci]
* change (CI): add subkey for macos build as manual on PRs as well
* change (CI): add glob to match every changed file in monitoring
* test (CI): [chaos:basic]
2020-09-30 22:16:48 +02:00
André Silva
6fe17000d0
client: fix log filters ( #7241 )
...
* client: fix multiple logger filters
* client: add test for log filters setup
2020-09-30 20:12:29 +00:00
André Silva
2520ba3d97
client: remove stale file ( #7239 )
2020-09-30 12:25:56 +02:00
Bastian Köcher
adc1892fcb
Fix compilation with environmental on latest nightly ( #7238 )
2020-09-30 09:44:29 +00:00
Max Inden
51c0d27aa1
.maintain/monitoring: Normalize alerting rules ( #7232 )
...
* .maintain/monitoring: Normalize alerting rules
- Start alert names with their component and end with the describing
adjective.
- Describe alert duration in `message` with `for more than` across all
alerts.
* .maintain/monitoring: Fix alert tests
2020-09-30 08:48:48 +00:00
Shawn Tabrizi
59afb1081c
Fix treasury benchmark setup ( #7234 )
2020-09-29 20:01:43 +00:00
Bastian Köcher
1f55a92b5a
Increase Westend spec_version ( #1766 )
...
This is required to ensure that on chain isn't seen as compatible to
current master.
2020-09-29 20:09:34 +02:00
nasa8x
8e10515aa2
GeekCash reserve SS58 address id 19 ( #7195 )
...
* Add ss58 address for GeekCash
* Add ss58 address for GeekCash
* Add ss58 address for GeekCash on ss58registry.json
2020-09-29 14:12:19 +02:00
Andronik Ordian
de05bec4d6
move Metrics to utils ( #1765 )
2020-09-29 11:42:20 +00:00
Pierre Krieger
7142a16df8
No longer display the legacy representation of the PeerId ( #7230 )
2020-09-29 11:04:30 +00:00
Max Inden
5c0413aced
client/network: Stop sending noise legacy handshake ( #7211 )
...
Stop sending legacy handshake payloads, i.e. length-prefixed protobuf
payloads inside a length-prefixed noise frame. Receiving of such legacy
handshakes is still supported, thus backwards compatibility is given.
2020-09-29 09:00:58 +00:00
Sergei Shulepov
54c7e3e9fb
Tidy some CLI stuff. ( #7227 )
...
Co-authored-by: Gav Wood <gavin@parity.io >
2020-09-28 19:28:32 +00:00
Sergei Shulepov
5d4eb6bdce
Add the XCM primitives crate. ( #1760 )
...
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-09-28 14:28:03 +00:00
Fedor Sakharov
9756b2d676
Register listeners in statement distribution ( #1759 )
...
* Register listeners in statement distribution
* Review fixes
2020-09-28 13:55:59 +00:00
Fedor Sakharov
32cc9e7a44
Collator protocol followup ( #1741 )
...
* Metrics
* Dont punish late collations
* Fix metrics
* Update node/network/collator-protocol/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* Change on_request arg to Result
Co-authored-by: Andronik Ordian <write@reusable.software >
2020-09-28 12:40:40 +00:00
Peter Goodspeed-Niklaus
9a0f08bfe1
Revert "Remove Old Service, 2nd try ( #1732 )" ( #1758 )
...
This reverts commit 96f2615582 .
2020-09-28 10:57:29 +00:00
Peter Goodspeed-Niklaus
96f2615582
Remove Old Service, 2nd try ( #1732 )
...
* Restore "Remove service, migrate all to service-new (#1630 )"
i.e.
Revert "Revert "Remove service, migrate all to service-new (#1630 )" (#1731 )"
This reverts commit b4457f555b .
This allows us to get the changeset from #1630 into a new branch
which can be merged sometime in the future after appropriate burnin
tests have completed.
* remove ',)' from codebase outside of macros
* restore bdfl-preferred formatting
* attempt to improve destructuring formatting
* rename polkadot-service-new -> polkadot-service
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove unused import
* Update runtime/rococo-v1/README.md
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-09-28 08:23:02 +00:00
Lovesh Harchandani
62cfccbdd6
Make private member of ecdsa Public and Signature tuple structs as ( #7216 )
...
public.
`Public` and `Signature` tuple structs of ed25519 and sr25519 have the
internal member public already. This change makes the interface similar.
Signed-off-by: lovesh <lovesh.bond@gmail.com >
2020-09-25 22:28:07 +02:00
Sergei Shulepov
796de5f3e3
collation-generation: guide and tidying ( #1753 )
...
* Guide: Change for {Global,Local}ValidationData to ValidationData
Seems like that was missed during the transition from notions of global and local validation data to persistent and transient
* collation-generation: a small drive-by fix of line length
* collation-generation: extract an error module
this allows us to avoid piling Error and Result types from different contexts, specifically std vs. module-local
* collation-generation: extract LOG_TARGET from log statements
2020-09-25 16:33:10 +00:00
Alexander Popiak
1a65205278
Move proxies migration ( #7205 )
...
* move the time delayed proxies migration into a separate function
* add use statement
* Update frame/proxy/src/lib.rs
* bump proxy cargo version
* update Cargo.lock
* Update lib.rs
* better format
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Gav Wood <gavin@parity.io >
2020-09-25 09:11:48 +00:00
Gavin Wood
d4bfb55c0f
Companion for #7111 (Introduce cancel_proposal and blacklist) ( #1728 )
...
* Fixes
* update weights
* Fixes
* Fixes
* Fixes
* update weights
* "Update Substrate"
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2020-09-24 21:52:20 +00:00
Gavin Wood
26465eadaa
Introduce cancel_proposal to rid us of those pesky proposals ( #7111 )
...
* Introduce `cancel_proposal`
Also fix proposal weight.
* Support proposal cancellation from runtime.
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fix benchmarks
* fix benchmark
* whitelisted caller weights
* fix build
* Fixes
* Fixes
* Fixes
* Fixes
* Update frame/democracy/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* doc updates
* new weights
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-09-24 21:33:02 +00:00
Pierre Krieger
1b350a050c
Add more metrics to the import queue ( #7207 )
2020-09-24 21:11:29 +02:00
Benjamin Kampmann
937fb34bd2
Ensure that all new packages released with unleash have paritytech:core-devs as owners ( #7204 )
2020-09-24 20:41:20 +02:00
Caio
35266b1bdb
Add doc for auto-generated code ( #7201 )
...
* Add doc for auto-generated code
* Update utils/wasm-builder-runner/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-09-24 16:35:39 +00:00
Sergei Shulepov
a532315737
Parachains: Introduce a dummy module to include the Origin. ( #1749 )
...
That's because `construct_runtime` doesn't support a free-standing Origin. See the comment in parachains/src/origin.rs
2020-09-24 15:13:23 +00:00
Edwin
dc93302d5c
fix typo: bitfrost -> bifrost ( #7199 )
2020-09-24 12:51:31 +02:00
Pierre Krieger
b4aa5f328e
Update networking Prometheus dashboard ( #7180 )
2020-09-24 09:30:27 +00:00
Andronik Ordian
f9b15f654b
provisioner tests: remove tokio from dev-dependencies ( #1745 )
...
* provisioner: remove tokio from dev-dependencies
* provisioner: use futures_timer instead
2020-09-23 20:21:03 +02:00
Bastian Köcher
a00f0bf81c
Fix vanity command by taking the network into account ( #7192 )
...
* Fix vanity command by taking the network into account
* Delete empty line
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Change test
* Stupid me
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-09-23 16:30:12 +00:00
Shawn Tabrizi
4e5f9fb72b
More Improvements to Benchmarking CLI + Generic WeightInfo ( #7168 )
...
* Generic WeightInfo, Output File Path
* Make `WeightInfo` generic
* Add support for header file
* fix line width
* add `--spaces` flag
* Configurable trait and struct strings
* make elections phragmen generic
* Add date to generated file
* Apply suggestions from code review
Co-authored-by: Gavin Wood <gavin@parity.io >
* fixes
* add settings metadata to output
Co-authored-by: nikvolf <nikvolf@gmail.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-09-23 13:56:30 +00:00
Kian Paimani
313f86ec23
PhragMMS election. ( #6685 )
...
* Revamp npos-elections and implement phragmms
* Update primitives/npos-elections/src/phragmms.rs
* Fix build
* Some review grumbles
* Add some stuff for remote testing
* fix some of the grumbles.
* Add remote testing stuff.
* Cleanup
* fix docs
* Update primitives/arithmetic/src/rational.rs
Co-authored-by: Dan Forbes <dan@danforbes.dev >
* Small config change
* Better handling of approval_stake == 0
* Final touhces.
* Clean fuzzer a bit
* Clean fuzzer a bit
* Update primitives/npos-elections/src/balancing.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Fix fuzzer.
* Better api for normalize
* Add noramlize_up
* A large number of small fixes.
* make it merge ready
* Fix warns
* bump
* Fix fuzzers a bit.
* Fix warns as well.
* Fix more tests.
Co-authored-by: Dan Forbes <dan@danforbes.dev >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-09-23 08:16:10 +00:00
Benjamin Kampmann
951024554d
Update to substrate 2.0 ( #1744 )
2020-09-22 20:52:03 +02:00
Benjamin Kampmann
ecdc94420e
Releasing 2.0 – two dot 😮 ( #7182 )
...
Tagging the release of substrate 2.0
[ci: skip-checks]
2020-09-22 19:47:38 +02:00
Gavin Wood
cbf1a282b5
u32 Refcounts, plus migration ( #7164 )
...
* u32 Refcounts, plus migration
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-09-22 16:20:39 +00:00
Guillaume Thiolliere
944e192532
Companion: Handle construct_runtime breaking change. ( #1692 )
...
* use construct_runtime index
* fix
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-09-22 15:20:13 +00:00
Guillaume Thiolliere
98951b33a9
Allow pallet in construct_runtime to have fixed index ( #6969 )
...
* implement index for pallet + some tests
* add test and doc
* remove deprecated and document behavior
* update internal doc
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* address review
* use index for all module, break construct_runtime
* fix line length
* implement migration helper funciton in scheduler
* fix start at index 0
* Update frame/scheduler/src/lib.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/support/procedural/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* bump frame-metadata crate
* factorize
* avoid some unwrap and remove nightly join
* Update frame/support/src/event.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fix test
* add test and improve error message
* factorize test
* keep iterator, and use slice instead of vec
* refactor to avoid to have expects
* small refactor
* Test something
* Make sure we update the `Cargo.lock`
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* return 2 error
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fix typo
* Revert "fix typo"
This reverts commit f2de8f2db34e8ac72bc9c34437c60dca3fa4ac22.
* Revert "Update frame/scheduler/src/lib.rs"
This reverts commit 6feb4605c6f784b64591e229de7a6fec6dbffb4b.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-09-22 14:54:03 +00:00
Bastian Köcher
1934a74cc7
Companion for ModuleToIndex to PalletInfo rename ( #1743 )
...
* Companion for `ModuleToIndex` to `PalletInfo` rename
* "Update Substrate"
Co-authored-by: parity-processbot <>
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
2020-09-22 16:19:12 +02:00
Kian Paimani
04224aa4f6
Companion for substrate/pull/7161 ( #1739 )
...
* Companion for https://github.com/paritytech/substrate/pull/7161
* Update weights
* Update tests
* remove weight tests
* Update weights using benchmarking machine
./substrate2/target/release/substrate benchmark --chain dev --steps 50 --repeat 20 --pallet pallet_elections_phragmen --extrinsic "*" --raw --execution=wasm --wasm-execution=compiled --output
* "Update Substrate"
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: parity-processbot <>
2020-09-22 16:01:06 +02:00