Shawn Tabrizi
8d36e9b0f0
Remove Stale Upgrades ( #1780 )
...
* Remove stale upgrades
* add back origin migration
* remove unused
2020-10-02 16:45:04 +02:00
Shawn Tabrizi
2de057020f
Update Polkadot Weights for Substrate 2.0 ( #1761 )
...
* Update benchmark list
* copy weights from substrate
* Run benchmarks on Polkadot
* Update kusama benchmark list
* update westend benchmark list
* Run benchmarks on Kusama
* update payout staking weights
* cargo update -p sp-io
* remove babe and grandpa from benchmark list
* remove babe and grandpa weights
* re-run staking weights
* update staking weights
* copy weights from Polkadot into Westend
* Update Cargo.lock
2020-10-02 15:45:59 +02:00
Kian Paimani
4d036e0053
Fix offchain election to respect the weight ( #7215 )
...
* Mockup
* Fix offchain election to respect the weight
* Fix builds a bit
* Update frame/staking/src/offchain_election.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/staking/src/offchain_election.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Make it build, binary search
* Fix a number of grumbles
* one more fix.
* remove unwrap.
* better alg.
* Better alg again.
* Final fixes
* Fix
* Rollback to normal
* Final touches.
* Better tests.
* Update frame/staking/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Proper maxExtWeight
* Final fix
* Final fix for the find_voter
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2020-10-02 13:45:17 +00:00
Cecile Tonglet
ba44e83f68
Add --collator flag as alternative to --validator ( #222 )
...
* Initial commit
Forked at: 56753b7717
Parent branch: origin/master
* Add --collator flag as alternative to --validator
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-10-02 10:24:20 +00:00
Max Inden
a772eb27a2
client/cli: Update to fdlimit 0.2.1 ( #7249 )
...
fdlimit 0.2.1 contains a small patch allowing compilation on platforms
where libc represents rlimits as u32.
2020-10-02 08:51:21 +00:00
Fedor Sakharov
07a3f73811
Parachains v1 registrar module. ( #1559 )
...
* Initial commit.
* Fix build
* Add comments, remove Event
* Dont expose calls
* Remove TODO and origins
* Fix merge
* Enable or disable parathread registration
2020-10-01 19:00:59 -04:00
Wei Tang
47b53a26ee
Fix typo cranelift_wasm ( #7248 )
2020-10-01 20:44:06 +00:00
Bastian Köcher
5d8ae8d024
Derive From for AllMessages and simplify send_msg ( #1774 )
2020-10-01 16:22:15 +00:00
Pierre Krieger
d10404dca4
Remove hack around secondary connections handshakes ( #7246 )
2020-10-01 14:33:38 +00:00
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